行:
function NavigateSlip(target, linkC) {
var l;
try {
for (x = 1; x <= 11; x++) {
l = topAppFrame.frames["HMain"].document.getElementById("link" + x);
l.style.backgroundColor = "#003366";
}
} catch (e) {
}
var linkC = topAppFrame.frames["HMain"].document.getElementById(linkC);
linkC.style.backgroundColor = "red";
topAppFrame.document.frames['SlipArea'].location = target;
}
&#13;
错误: 未捕获的TypeError:无法读取属性&#39; getElementById&#39;未定义的
感谢
答案 0 :(得分:0)
尝试使用它:
var linkC = topAppFrame.frames["HMain"].document.getElementById("linkC");
如果它不起作用,如果你向我们展示其他代码也会有很多帮助