麻烦帮助解释一下,对它不太熟悉
这段代码要达到的目的是:当鼠标在文字上面时,文字下面出现下拉菜单。
li:hover ul, li.over ul { // ?这是什么意思
display: block; //我知道这是显示块信息
}
<script type="text/javascript"><!--//--><![CDATA[//><!--
startList = function() {
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", ""); // 这是什么意思 }
}
}
}
}
window.onload=startList;//--><!]]></script>
这段代码要达到的目的是:当鼠标在文字上面时,文字下面出现下拉菜单。
li:hover ul, li.over ul { // ?这是什么意思
display: block; //我知道这是显示块信息
}
<script type="text/javascript"><!--//--><![CDATA[//><!--
startList = function() {
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", ""); // 这是什么意思 }
}
}
}
}
window.onload=startList;//--><!]]></script>
解决方案 »
- 如何学习asp.net三层架构呢??
- 关于内容页调用母版页的控件
- 老大们你们谁写过完全自定义生成的菜单啊??
- 明天放假啦~心情好放个小代码~ ^_^ "用DIV+CSS实现文字及面板阴影效果"
- 关于FILE的中等问题??????
- 打包警告: 两个或多个对象具有相同的目标位置(“[targetdir]\bin\test.dll”)是怎么回事?
- 很棘手的问题,关于DataGrid的编辑问题(懂DataGrid的都进来看看)
- 如何显示放在某一文件夹下得附件(文档、图片),用c#语句如何实现!
- VBScript捕获数据的问题,高手请进
- TreeView的TreeNode排序问题。
- asp.net session 购物车问题
- 现在ASP.NET AJAX发展到那个程度了,技术成熟了吗?
给className连接字符串“ over”
this.className=this.className.replace(" over", "");将className中的字符串“ over”去掉