1var CenterTimer, AW1, AW2; 2function ShowWindow(W1, W2, iframesrc, bcolor) { 3 AW1 = W1; 4 AW2 = W2; 5 if (AW1 == '' || typeof AW1 == 'undefined') AW1 = 'messWindow'; 6 if (AW2 == '' || typeof AW2 == 'undefined') AW2 = 'promptWindow'; 7 if (bcolor == '' || typeof bcolor == 'undefined') bcolor = '#333333' 8 if (jQuery('#' + AW1).length == 0) jQuery('<div id="' + AW1 + '" style="position:absolute;z-index:100;display:none;background-color:' + bcolor + ';top:0;left:0"></div>').appendTo("body"); 9 if (jQuery('#' + AW2).length == 0) { 10 jQuery('<IFRAME id="' + AW2 + '" name="' + AW2 + '" style="position:absolute;z-index:103;background-color:#fff;" src="" frameborder="0" scrolling="no" ></IFRAME>').appendTo("body"); 11 } 12 jQuery('#' + AW2).css({ 'position': 'absolute', 'z-index': '103' }); 13 jQuery('#' + AW1).css("opacity", 0.8); 14 jQuery('#' + AW1).width(document.body.scrollWidth > document.documentElement.clientWidth ? document.body.scrollWidth : document.documentElement.clientWidth); 15 jQuery('#' + AW1).height(document.body.scrollHeight > document.documentElement.clientHeight ? document.body.scrollHeight : document.documentElement.clientHeight); 16 jQuery('#' + AW1).fadeIn("slow"); 17 if (iframesrc != '' && typeof iframesrc != 'undefined') { 18 jQuery("#" + AW2).attr('src', iframesrc).load(function () { IFrameReSize(AW2); IFrameReSizeWidth(AW2); }); 19 } 20 jQuery('#' + AW2).fadeIn("slow"); 21 DivCenter(); 22} 23function HideWindow() { jQuery("#" + AW1).fadeOut("slow"); jQuery("#" + AW2).fadeOut("slow"); clearTimeout(CenterTimer); } 24function DivCenter() { 25 26 var scrollY = 0; 27 if (document.documentElement && document.documentElement.scrollTop) { scrollY = document.documentElement.scrollTop; } else if (document.body && document.body.scrollTop) { scrollY = document.body.scrollTop; } 28 else if (window.pageYOffset) { scrollY = window.pageYOffset; } else if (window.scrollY) { scrollY = window.scrollY; } 29 var Div = document.getElementById(AW2); 30 var Dh = Div.offsetHeight; 31 if (Dh > jQuery('#' + AW1).height()) jQuery('#' + AW1).height(Div.offsetHeight + jQuery('#' + AW2).offset().top * 2); 32 //if (document.documentElement.clientHeight > Dh) { Div.style.top = (document.documentElement.clientHeight - Div.offsetHeight) / 2 + scrollY + 'px'; } 33 if(jQuery.browser.msie){ 34 Div.style.top = (document.documentElement.clientHeight - Div.offsetHeight) / 2 + scrollY + 300 + 'px'; 35 }else{ 36 //if (document.documentElement.clientHeight > Dh) { Div.style.top = (document.documentElement.clientHeight - Div.offsetHeight) / 2 + scrollY + 'px'; } 37 documentHeight =document.body.scrollTop + self.innerHeight - Div.clientWidth; 38 Div.style.top = documentHeight + 'px'; 39 //Div.style.top = (document.documentElement.clientHeight - Div.offsetHeight) / 2 + scrollY + 'px'; 40 } 41 Div.style.left = (document.body.clientWidth - Div.clientWidth) / 2 + document.body.scrollLeft + 'px'; 42 CenterTimer = setTimeout("DivCenter()", 500); 43} 44function AlertLoginReturn(S) { if (S == 1) location.reload(); } 45function IFrameReSize(iframename) { 46 var pTar = document.getElementById(iframename); 47 if (pTar) { if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight) { pTar.
47style.height = pTar.contentDocument.body.offsetHeight + 'px'; } else if (pTar.Document && pTar.Document.body.scrollHeight) { pTar.style.height = pTar.Document.body.scrollHeight + 'px'; } } 48} 49function IFrameReSizeWidth(iframename) { 50 var pTar = document.getElementById(iframename); 51 if (pTar) { if (pTar.contentDocument && pTar.contentDocument.body.offsetWidth) { pTar.style.width = pTar.contentDocument.body.offsetWidth + 'px'; } else if (pTar.Document && pTar.Document.body.scrollWidth) { pTar.style.width = pTar.Document.body.scrollWidth + 'px'; } } 52} 53
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.