当前位置: 技术问答>java相关
.js代码,请告诉我是什么意思?
来源: 互联网 发布时间:2015-08-28
本文导语: if (window.__smartNav == null && (window.parent.__smartNav == null || window.parent.frames["__hifSmartNav"] != window)) { var sn = new Object(); window.__smartNav = sn; sn.hif = document.all("__hifSmartNav")...
if (window.__smartNav == null && (window.parent.__smartNav == null
|| window.parent.frames["__hifSmartNav"] != window))
{
var sn = new Object();
window.__smartNav = sn;
sn.hif = document.all("__hifSmartNav");
sn.siHif = sn.hif.sourceIndex;
sn.update = function()
{
var sn = window.__smartNav;
if (sn.xmli.XMLDocument.readyState 0)
{
if (sn.sHif == null)
{
sn.sHif = document.createElement("IFRAME");
sn.sHif.name = "__hifSmartNav";
sn.sHif.style.display = "none";
}
try {window.location = fdr[0].url;} catch (e) {};
return;
}
var fdurl = fd.location.href;
if (fdurl == "javascript:smartnav=1")
return;
var fdurlb = fdurl.split("?")[0];
if (document.location.href.indexOf(fdurlb) = 0; i--)
{
if (hk[i].tagName != "BASEFONT" || hk[i].innerHTML.length == 0)
hdm.removeChild(hdm.childNodes[i]);
}
var kids = fd.getElementsByTagName("head")[0].childNodes;
for (var i = 0; i 0)
continue;
k.mergeAttributes(kids[i]);
break;
default:
var o = document.createElement("BODY");
o.innerHTML = "" + kids[i].outerHTML + "";
k = o.firstChild;
k.mergeAttributes(kids[i]);
break;
}
hdm.appendChild(k);
}
var colSelect = document.body.getElementsByTagName("SELECT");
for (var i = 0; i