100分急求一份DOM树做的导航网页 最近老师留了这么一份作业。要求做一个DOM树节点的导航网页!!!分不是问题,可以把东西发到我邮箱里。。[email protected]谢谢朋友们啦!!!!很急。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 创建节点这块真的很麻烦呀!!!function StartList(){ if (document.all&&document.getElementById) { navRoot = document.getElementById("nav"); for (i=0; i<navRoot.childNodes.length; i++) //遍历节点 { node = navRoot.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); } } } } }能帮我解读一下这几行代码么?ClassName是什么意思呀??? Firefox 13发出的get请求和post请求顺序问题 向各位前辈请教一个问题 请教各位了,怎样实现一个连接当我点击后会加粗或着变为其他颜色,而当点击别的连接后前一又会变会原来的样式? 问个textarea的问题??请高手出招 求教规则表达式 图片部分区域触发如何实现 关于setTimeout的问题 onblur触发的显示问题,急急急!!!!!!! 怎样用js控制日期格式 Ctrl+Enter组合问题 iframe调用函数问题 javascript遍历树问题
function StartList()
{
if (document.all&&document.getElementById)
{
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) //遍历节点
{
node = navRoot.childNodes[i];
if (node.nodeName=="LI")
{
node.onmouseover=function()
{
this.className+=" over";
}
node.onmouseout=function()
{
this.className=this.className.replace(" over", "");
}
}
}
}
}
能帮我解读一下这几行代码么?ClassName是什么意思呀???