1var SLB_cnt = 0; 2 3function SLB(url, type) 4{ 5 var a = document.getElementById('SLB_film'); 6 var b = document.getElementById('SLB_content'); 7 var c = document.getElementById('SLB_loading'); 8 if(url) { 9 a.style.top = 0; 10 a.style.left = 0; 11 a.style.display = ""; 12 if (document.documentElement.scrollHeight > document.body.scrollHeight) { 13 a.style.height = document.documentElement.scrollHeight + 'px'; 14 } else { 15 a.style.height = document.body.scrollHeight + 'px'; 16 } 17 c.style.display = "block"; 18 SLB_setCenter(c,true); 19 if(type == 'image') { 20 b.innerHTML="<img src=" + url + " class='SLB_center' onload='SLB_setCenter(this);' title='ì´ë¯¸ì§ë¥¼ í´ë¦íë©´ ì°½ì´ ë«íëë¤.'>"; 21 if(arguments[2]) a.onclick = function () { SLB() }; 22 if(arguments[3]) b.innerHTML += "<div class='SLB_caption'>"+ arguments[3] +"</div>";; 23 } else if (type == 'iframe') { 24 b.innerHTML="<iframe id='SLB_iframe' src=" + url + " width="+ arguments[2] +" height="+ arguments[3] +" class='SLB_center' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' onload='tryReHeight("+arguments[5]+");'/></iframe>"; 25 if(arguments[4]) { 26 b.innerHTML += "<div class='SLB_close' style='cursor:pointer;background-color:#000000; filter:Alpha(opacity=90); opacity:0.9; -moz-opacity:0.9;height:20px;' onclick='SLB();' title='ë«ê¸°'><font color='white'><b>ë«ê¸°</b></font></div>"; 27 } 28 b.onclick = ''; b.firstChild.style.cursor = 'default'; 29 } else if (type='html'){ 30 b.innerHTML = url; 31 SLB_setCenter(b.firstChild); 32 if(arguments[2]) b.onclick = ''; 33 } 34 hideSelect(); 35 } else { 36 a.onclick = ''; 37 a.style.display = "none"; 38 a.style.height = '100%'; 39 a.style.width = '100%'; 40 b.innerHTML = ""; 41 b.onclick = function () { SLB() }; 42 c.style.display = "none"; 43 showSelect(); 44 SLB_cnt = 0; 45 } 46} 47 48function SLB_setCenter(obj) { 49 if (obj) { 50 var h = (window.innerHeight || self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight); 51 var w = (window.innerWidth || self.innerWidth || document.documentElement.clientWidth || document.body.clientWidth); 52 var l = ((window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft) + ((w-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2)); 53 var t = ((window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) + ((h-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2)); 54 if((obj.width||parseInt(obj.style.width)||obj.offsetWidth) >= w) l = 0; 55 if((obj.height||parseInt(obj.style.height)||obj.offsetHeight) >= h) t = (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop); 56 document.getElementById('SLB_content').style.left = l + "px"; 57 if(SLB_cnt == 0) { 58 document.getElementById('SLB_content').style.top = t + "px"; 59 if(document.getElementById('SLB_content').offsetHeight >= h - 20) { 60 SLB_cnt ++; 61 } 62 if(obj.nextSibling && (obj.nextSibling.className == 'SLB_close' || obj.nextSibling.className == 'SLB_caption')) { 63 obj.nextSibling.style.display = 'block'; 64 if((t - (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop))>(obj.nextSibling.offsetHeight/2)) { 65 document.getElementById('SLB_content').style.top = parseInt(document.getElementById('SLB_content').style.top) - (obj.nextSibling.offsetHeight/2) + "px"; 66 } 67 } 68 } 69 obj.style.visibility = 'visible'; 70 if(!arguments[1]) { 71 document.getElementById('SLB_loading').style.display = "none"; 72 } else { 73 obj.style.left = l + "px"; 74 obj.style.top = t + "px"; 75 } 76 } 77} 78 79function hideSelect() { 80 var windows = window.frames.length; 81 var selects = document.getElementsByTagName("SELECT"); 82 for (i=0;i < selects.length ;i++ ) 83 { 84 selects[i].style.visibility = ""; 85 //selects[i].style.visibility = "hidden"; 86 } 87 if (windows > 0) { 88 for(i=0; i < windows; i++) { 89 try { 90 var selects = window.frames[i].document.getElementsByTagName("SELECT"); 91 for (j=0;j<selects.length ;j++ ) 92 { 93 selects[j].style.visibility = ""; 94 //selects[j].style.visibility = "hidden"; 95 } 96 } catch (e) {} 97 } 98 } 99} 100 101function showSelect() { 102 var windows = window.frames.length; 103 var selects = document.getElementsByTagName("SELECT"); 104 for (i=0;i < selects.length ;i++ ) 105 { 106 selects[i].style.visibility = ""; 107 //selects[i].style.visibility = "visible"; 108 } 109 if (windows > 0) { 110 for(i=0; i < windows; i++) { 111 try { 112 var selects = window.frames[i].document.getElementsByTagName("SELECT"); 113 for (j=0;j<selects.length ;j++ ) 114 { 115 selects[j].style.visibility = ""; 116 //selects[j].style.visibility = "visible"; 117 } 118 } catch (e) {} 119 } 120 } 121} 122 123function tryReHeight(sign) {
124 var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]; 125 var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0; 126 var currentfr=document.getElementById('SLB_iframe'); 127 if(sign == true) { 128 try { 129 if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) { 130 setIframeSize(currentfr.contentDocument.body.offsetHeight+FFextraHeight); 131 } else if (currentfr.Document && currentfr.Document.body.scrollHeight) { 132 setIframeSize(currentfr.Document.body.scrollHeight); 133 } 134 }catch(e) { } 135 } else { 136 SLB_setCenter(currentfr); 137 } 138} 139 140function setIframeSize(h, w) { 141 SLB_cnt = 0; 142 var ifr = currentfr=document.getElementById('SLB_iframe'); 143 if (ifr) { 144 if(w) { 145 ifr.width = w; 146 } 147 if(h) { 148 ifr.height = h; 149 } 150 SLB_setCenter(ifr); 151 } 152} 153 154var prevOnScroll = window.onscroll; 155window.onscroll = function () { 156 if(prevOnScroll != undefined) prevOnScroll(); 157 if (document.documentElement.scrollHeight > document.body.scrollHeight) { 158 document.getElementById('SLB_film').style.height = document.documentElement.scrollHeight + 'px'; 159 } else { 160 document.getElementById('SLB_film').style.height = document.body.scrollHeight + 'px'; 161 } 162 document.getElementById('SLB_film').style.width = document.body.scrollWidth + 'px'; 163 SLB_setCenter(document.getElementById('SLB_content').firstChild); 164} 165 166var prevOnResize = window.onresize; 167window.onresize = function () { 168 if(prevOnResize != undefined) prevOnResize(); 169 if (document.documentElement.scrollHeight > document.body.scrollHeight) { 170 document.getElementById('SLB_film').style.height = document.documentElement.scrollHeight + 'px'; 171 } else { 172 document.getElementById('SLB_film').style.height = document.body.scrollHeight + 'px'; 173 } 174 document.getElementById('SLB_film').style.width = document.body.offsetWidth + 'px'; 175 SLB_setCenter(document.getElementById('SLB_content').firstChild); 176}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.