1window.NDMyHdLogin99 = { 2 _showLoginS : function(aid, sf) { 3 if(document.domain != '99.com') { 4 document.domain = '99.com'; 5 } 6 7 var sp = window.location.href.split('#'); 8 document.cookie="HTTPURL=" + sp[0]+ ';path=/;domain=99.com'; 9 document.cookie="HTTPURL2=" + sp[0]+ ';path=/;domain=99.com'; 10 11 var _cid = 'mylogin_gw_win'; 12 if(document.getElementById(_cid)) { 13 document.getElementById(_cid).style.display = "block"; 14 return; 15 } 16 var surl = 'https://act.my.99.com/gwdh/login99_g.html'; 17 if ('undefined' != typeof aid) { 18 surl += "&aid="+aid; 19 } 20 if ('undefined' != typeof sf) { 21 surl += "&sf="+sf; 22 } 23 24 var _obj = document.createElement('iframe'); 25 _obj.setAttribute('src', surl); 26 _obj.setAttribute('width', 330); 27 _obj.setAttribute('height', 370); 28 _obj.setAttribute('frameborder', 0); 29 _obj.setAttribute('scrolling', 'no'); 30 31 var msk = document.createElement('div'); 32 var div = document.createElement('div'); 33 var msk_style = 'background:#000; filter:alpha(opacity=30); -khtml-opacity: 0.3;-moz-opacity:0.3; opacity:0.3; left:0; top:0; position:fixed; height:100%; width:100%; z-index:2001;'; 34 var ifm_style = "margin:0 auto;position:absolute;z-index:2002; left:40%;top:40%; margin-left:-255px; margin-top:-130px;_top:expression(document.documentElement.scrollTop+Math.round(document.documentElement.offsetHeight/2) + 'px'); "; 35 if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) { 36 msk.style.cssText = msk_style; 37 _obj.style.cssText = ifm_style 38 } else { 39 msk.setAttribute('style', msk_style); 40 _obj.setAttribute('style', ifm_style); 41 } 42 div.setAttribute('id', _cid); 43 div.appendChild(msk); 44 div.appendChild(_obj); 45 document.body.appendChild(div); 46 47 NDMyHdLogin99._fixedWinGw(_obj); 48 window.onscroll = function() { 49 NDMyHdLogin99._fixedWinGw(_obj); 50 } 51 }, 52 53 _fixedWinGw: function(_obj) { 54 var stopbase = 0; 55 var scrpos = 0; 56 if (window.pageYOffset) { 57 scrpos = window.pageYOffset; 58 } else if (document.compatMode && document.compatMode != 'BackCompat') { 59 scrpos = document.documentElement.scrollTop; 60 } else if (document.body) { 61 scrpos = document.body.scrollTop; 62 } 63 _obj.style.left = '51%'; 64 _obj.style.marginLeft = '-'+(425 / 2)+'px'; 65 _obj.style.marginTop = '40px'; 66 _obj.style.top = (stopbase + scrpos)+'px'; 67 } 68} 69 70window.addEventListener('message', function(e){ 71 if ('https://act.my.99.com' == e.origin && true == e.data.clsLgnWin) { 72 if (document.getElementById('mylogin_gw_win')) { 73 document.getElementById('mylogin_gw_win').style.display = "none"; 74 } 75 if (document.getElementById('mylogin_win')) { 76 document.getElementById('mylogin_win').style.display = "none"; 77 } 78 } 79});
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.