给我发一份好吗?[email protected]
谢了!
谢了!
解决方案 »
- 大众点评-登陆界面-的ACTION是什么?
- 请高手看看这2个javascript程序哪不一样,怎么有一个就显示有错误呢
- 请问childNodes是只能在xml中使用还是普通的HTML也行
- 一个链接,当我鼠标移上去的时候,显示一个层,鼠标离开,就隐藏,但当我鼠标是移到这个层上面,层就不隐藏,请问这个js该如何写啊
- 帮我个忙急着要,计时器
- 请问这是什么语法?
- 求验证输入的数值是否是介于1-50之间的数值的javascript代码,多谢
- 怎么用javascript让checkbox被选中??
- 怎样取出链接“<a href="http://pgcn.net">盘古</a>”中的盘古?
- 求一带右键的javascript menuTree
- 高分求救,在线等待:如何禁止滚轮事件?
- 请问一个复选框检查文本框怎么处理?
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>a</title>
<style>
td.menutd{cursor:hand};
td{white-space:nowrap};
body{margin-left:0;margin-right:0;margin-top=0;margin-bottom=0};
</style>
</head><body>
<table width=100% border=1 bgcolor=d0d0d0 onmousemove="changeBgcolor(event.srcElement)"
onclick="changeDisplay(event.srcElement)"
ondblclick="changeDisplay2(event.srcElement)">
<tr><td>+a
<table width=100% bgcolor=eeeeee style="display:none" id=menuDetail>
<tr><td class=menutd>--a1</td></tr>
<tr><td class=menutd>--a2</td></tr>
<tr><td class=menutd>--a3</td></tr>
</table>
</td></tr>
<tr><td>+b
<table width=100% bgcolor=eeeeee style="display:none" id=menuDetail>
<tr><td >++b1
<table width=100% bgcolor=e0e0e0 style="display:none" id=menuDetail>
<tr><td >++++b11
<table width=100% bgcolor=eeeeee style="display:none" id=menuDetail>
<tr><td class=menutd>------b111</td></tr>
<tr><td class=menutd>------b112</td></tr>
<tr><td class=menutd>------b113</td></tr>
</table>
</td></tr>
<tr><td class=menutd>----b12</td></tr>
<tr><td class=menutd>----b13</td></tr>
</table>
</td></tr>
<tr><td class=menutd>--b2</td></tr>
<tr><td class=menutd>--b3</td></tr>
</table>
</td></tr>
<tr><td class=menutd>-c</td></tr>
</table>
<br>
说明:单击是逐层显示,双击则一次性展开所有级的菜单
<script language=javascript>var theCurrentTd="";//记录当前鼠标所在TD
var theCurrentA="";//记录当前选中的链接
function changeBgcolor(obj)
{
if (theCurrentTd!=obj)
{
if(theCurrentTd.tagName=="TD") theCurrentTd.style.background="";
theCurrentTd=obj;
if(theCurrentTd.tagName=="TD") theCurrentTd.style.background="#9999ee";
}
return false;
}function changeDisplay(obj)
{
if(obj.tagName!="TD") return false;
if(obj.all("menuDetail")==null)
{
if(theCurrentA.tagName=="TD")theCurrentA.style.color="";
theCurrentA=obj;
obj.style.color="red";
alert(obj.innerText);//本处需要自定义。
return false;
}
theMenuDetail=obj.all("menuDetail");
if(obj.all("menuDetail").length>0) //如果是多级菜单
theMenuDetail=obj.all("menuDetail")[0];
if (theMenuDetail.style.display=="none")
theMenuDetail.style.display="";
else theMenuDetail.style.display="none"
return false;
}function changeDisplay2(obj)
{
if(obj.all("menuDetail")==null) return false;
var theMenusOfObj=obj.all("menuDetail");
if(theMenusOfObj.length==null)theMenusOfObj[i]=theMenusOfObj;
for (var i=0;i<theMenusOfObj.length;i++)
theMenusOfObj[i].style.display="";
return false;
}</script>
</body>
可以把您的菜单发一份给我吗?
[email protected]
[email protected]
[email protected]
我也想要一份,正在做这方面的工作,谢谢了!
烦请发至:[email protected]