谁有http://www.etang.com那样的下拉菜单,感谢了, to lizexpert(liz) and ysharp(悠(知其然而不知其所以然也)):另存它的源文件后,打开,下拉菜单效果就没了,急啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>var old_menu = "";var item_num = 0; //菜单条目计数var item_count = 0; //菜单条目数var time_out = null;var flag = 1;function show_menu(obj, num) //弹出下拉菜单函数(WYC-2003-7-29){ if (flag == 1) { if (eval("document.all." + obj + ".style.display == 'none'")) { flag = 0; pop(old_menu, item_count); eval("document.all." + obj + ".style.display = '';"); item_count = num; if (old_menu != "") { eval("document.all." + old_menu + ".style.display = 'none';"); } old_menu = obj; push(obj); } else { flag = 1; eval("document.all." + obj + ".style.display = 'none';");// old_menu = ""; } return true; } else { return false; }}function hid_menu() //隐藏下拉菜单函数(WYC-2003-7-30){ if (old_menu != "") { eval("document.all." + old_menu + ".style.display = 'none';"); } flag = 1;// old_menu = "";}function push(item) //下拉菜单的拉出效果{ item_num++; if (item_num > item_count) { item_num = 0; flag = 1; clearTimeout(time_out); return true; } eval("document.all." + item + item_num + ".style.display='';"); time_out = setTimeout("push('" + item + "')",30); //在此修改渐变时间}function pop(item, num) //下拉菜单的退出效果{ for (var i=1; i<=num; i++) { eval("document.all." + item + i + ".style.display='none';"); }}/////////////////////////////////////////////////////////////////////////////</script><table width="77%" border="0" cellspacing="0" cellpadding="0"><tr> <td><a href="show_art.asp?sortid=1"><img src="pic/shenji.gif" border=0 width="72" height="22" onmouseover="show_menu('shenji', <%=assort1.recordcount%>)"></a></td></tr><tr> <td> <div id="shenji" style="position:absolute; width:140px; height:115px; z-index:1;display:none;"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height=5><img src='pic/menu_top.gif'></td> </tr> </table> <table class=tb onmouseout="menuItem_out()" bgcolor=#81B2E0 width="100%" border="0" cellspacing="0" cellpadding="0"> <tr onmouseover="menuItem_over(this)" id=shenji style="display:none;"> <td height=17> <font style="cursor:crosshair;">111111111</font></td> </tr> <tr onmouseover="menuItem_over(this)" id=shenji style="display:none;"> <td height=17> <font style="cursor:crosshair;">222222222</font></td> </tr> <tr onmouseover="menuItem_over(this)" id=shenji style="display:none;"> <td height=17> <font style="cursor:crosshair;">333333333</font></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height=5><img src='pic/menu_buttom.gif'></td> </tr> </table> </div> </td></tr></table> 晕,都置顶了还看不到http://expert.csdn.net/Expert/topic/2122/2122102.xml?temp=.1037866 Highcharts 导出图片 Linux下中文乱码 请教 复杂表格的打印问题 JS怎么获得frame里页面的元素? 求项目 如何获取对象? 弹出窗体无边框的问题 >>>>>>>>>>>>如何获得页面的高度? 我的javascript怎么了? js中如何调用asp??急 这个对象是什么? 为什么 document.form[0].text_name" + i 不是对象?其中i是数字。 javascript可以打开一个窗口,但是我不想显示这个窗口,应该怎么办?
<script>
var old_menu = "";
var item_num = 0; //菜单条目计数
var item_count = 0; //菜单条目数
var time_out = null;
var flag = 1;
function show_menu(obj, num) //弹出下拉菜单函数(WYC-2003-7-29)
{
if (flag == 1) {
if (eval("document.all." + obj + ".style.display == 'none'")) {
flag = 0;
pop(old_menu, item_count);
eval("document.all." + obj + ".style.display = '';");
item_count = num;
if (old_menu != "") {
eval("document.all." + old_menu + ".style.display = 'none';");
}
old_menu = obj;
push(obj);
} else {
flag = 1;
eval("document.all." + obj + ".style.display = 'none';");
// old_menu = "";
}
return true;
} else {
return false;
}
}
function hid_menu() //隐藏下拉菜单函数(WYC-2003-7-30)
{
if (old_menu != "") {
eval("document.all." + old_menu + ".style.display = 'none';");
}
flag = 1;
// old_menu = "";
}
function push(item) //下拉菜单的拉出效果
{
item_num++;
if (item_num > item_count) {
item_num = 0;
flag = 1;
clearTimeout(time_out);
return true;
}
eval("document.all." + item + item_num + ".style.display='';");
time_out = setTimeout("push('" + item + "')",30); //在此修改渐变时间
}
function pop(item, num) //下拉菜单的退出效果
{
for (var i=1; i<=num; i++) {
eval("document.all." + item + i + ".style.display='none';");
}
}/////////////////////////////////////////////////////////////////////////////
</script><table width="77%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a
href="show_art.asp?sortid=1"><img
src="pic/shenji.gif" border=0 width="72" height="22" onmouseover="show_menu('shenji', <%=assort1.recordcount%>)"></a></td>
</tr>
<tr>
<td>
<div id="shenji" style="position:absolute; width:140px; height:115px; z-index:1;display:none;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=5><img src='pic/menu_top.gif'></td>
</tr>
</table>
<table class=tb onmouseout="menuItem_out()" bgcolor=#81B2E0 width="100%" border="0" cellspacing="0" cellpadding="0">
<tr onmouseover="menuItem_over(this)" id=shenji style="display:none;">
<td height=17> <font style="cursor:crosshair;">111111111</font></td>
</tr>
<tr onmouseover="menuItem_over(this)" id=shenji style="display:none;">
<td height=17> <font style="cursor:crosshair;">222222222</font></td>
</tr>
<tr onmouseover="menuItem_over(this)" id=shenji style="display:none;">
<td height=17> <font style="cursor:crosshair;">333333333</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=5><img src='pic/menu_buttom.gif'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>