请net_lover(孟子E章)和阿信进来 我有点知道你的意思了,看这个链接的内容是不是http://expert.csdn.net/Expert/topic/1447/1447234.xml?temp=.1549494 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><title> New Document </title><meta name="Generator" content="EditPlus"><meta name="Author" content=""><meta name="Keywords" content=""><meta name="Description" content=""></head><BODY> <table id="level1" width="439" border="0" cellspacing="0" cellpadding="0"> <tr id="s1"> </tr></table><table width="439" border="0" cellspacing="0" cellpadding="0"> <tr id="s2"> </font></a></td> </tr></table><table width="439" border="0" cellspacing="0" cellpadding="0"> <tr id="s3"> </font></a></td> </tr></table><SCRIPT LANGUAGE="JavaScript"><!--//选择框的名字selector = [ "s1", "s2", "s3", "s4" ];//选择项: "名字", "值", 子选择menu = [ "中国","86", [ "北京","BJ", [ "海淀","1",null, "朝阳","2",null ], "四川","SC", [ "成都","28",null, "乐山","",null, "攀枝花","",null, "自贡","",null, "德阳","",null, "绵阳","",null ] ], "米国","1", [ "加利福尼亚","CA", [ "旧金山","1",null, "洛杉矶","2",null ], "华盛顿","WA", [ "西雅图","seattle",null, "华盛顿特区","seattle",null ] ] ]; function wizz(level){ if( level == 0 ) a = menu; else { str = "menu"; for( var i=0; i<level; i++ ) str += "[" + (document.all[selector[i]].selectedIndex * 3 + 2) + "]"; a = eval(str); } if( a == null ) return; s = document.all[selector[level]]; p = s.parentElement; s.removeNode(true); s = document.createElement("<tr id="+selector[level]+"></tr>"); p.appendChild(s); i=0; while( i < Math.floor(a.length/3) ) { s.selectedIndex = 0; var o=document.createElement("<td style='cursor:hand;color:blue' Index="+i+" onclick='this.parentElement.selectedIndex=this.Index;wizz(" + (level+1) + ")' value=" + a[i*3+1]+"></td>"); o.innerHTML=a[i++*3] s.insertAdjacentElement("beforeEnd", o); } wizz(level+1);}wizz(0);function wizzClick(level){ } //--></SCRIPT></BODY></html> web ie下confirm 点击取消,依然提交订单,有什么解决的办法吗 文本框输入月日,自动在前面增加当前年份 怎么实现特定图片悬停上出现提示 还是showModalDialog()问题!! easyui的treegrid无法加载数据 BMap.Convertor.translate多次调用后,内存增加! 如何用javascript检查一个字符串中是否有汉字以外的字符 各位一定要帮我这个忙,怎样用文本框实现添写IP框的那种效果呢? 如何在html中读入一篇word文档 如何删除select的option? 急!急!请教高人:任何制作分散式关联菜单
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<BODY>
<table id="level1" width="439" border="0" cellspacing="0" cellpadding="0">
<tr id="s1">
</tr>
</table>
<table width="439" border="0" cellspacing="0" cellpadding="0">
<tr id="s2">
</font></a></td>
</tr>
</table>
<table width="439" border="0" cellspacing="0" cellpadding="0">
<tr id="s3">
</font></a></td>
</tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
//选择框的名字
selector = [ "s1", "s2", "s3", "s4" ];
//选择项: "名字", "值", 子选择
menu = [
"中国","86",
[
"北京","BJ",
[
"海淀","1",null,
"朝阳","2",null
],
"四川","SC",
[
"成都","28",null,
"乐山","",null,
"攀枝花","",null,
"自贡","",null,
"德阳","",null,
"绵阳","",null
]
],
"米国","1",
[
"加利福尼亚","CA",
[
"旧金山","1",null,
"洛杉矶","2",null
],
"华盛顿","WA",
[
"西雅图","seattle",null,
"华盛顿特区","seattle",null
]
]
];
function wizz(level)
{
if( level == 0 )
a = menu;
else
{
str = "menu";
for( var i=0; i<level; i++ )
str += "[" + (document.all[selector[i]].selectedIndex * 3 + 2) + "]";
a = eval(str);
}
if( a == null )
return;
s = document.all[selector[level]];
p = s.parentElement;
s.removeNode(true);
s = document.createElement("<tr id="+selector[level]+"></tr>");
p.appendChild(s);
i=0;
while( i < Math.floor(a.length/3) )
{
s.selectedIndex = 0;
var o=document.createElement("<td style='cursor:hand;color:blue' Index="+i+" onclick='this.parentElement.selectedIndex=this.Index;wizz(" + (level+1) + ")' value=" + a[i*3+1]+"></td>");
o.innerHTML=a[i++*3]
s.insertAdjacentElement("beforeEnd", o);
}
wizz(level+1);
}
wizz(0);function wizzClick(level)
{
}
//-->
</SCRIPT>
</BODY>
</html>