网页菜单在ie和傲游正常,firefox不正常,谁帮我改改!

发布时间:2024-05-20 04:56 发布:上海旅游网

问题描述:

<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.bt { FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #ffffff; LINE-HEIGHT: 21px
}
-->
</style>
</head>

<body>
<table width="205" border="0" cellspacing="0" cellpadding="0">
<tr>

<td height="25" align="left" background="ad_pic/ad_left_top.jpg"><span class="bt"><FONT color=#ffffff>   </FONT></span></td>
</tr>

</table>
<table width="205" border="0" cellspacing="0" cellpadding="0">
<tr>

<td height="25"bgcolor=ececec> 当前用户:<font color=black><%=session("adname")%></font></td>
</tr>

</table>
<table width="205" height="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<%
if trim(session("rank"))="3" then '论坛管理员
sql = "select * from admin_class where cid=0 and isshow=1 and rank='3' order by pid"
else
sql = "select * from admin_class where cid=0 and isshow=1 order by pid"
end if
set rs = conn.execute (sql)
if not rs.eof then
i=1
do while not rs.eof
%>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="24" background="ad_pic/ad_left_title.jpg"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="28%" align="left"> </td>
<td width="72%" class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; id=menuTitle9 onClick="showsubmenu(<%=i%>)" style="cursor:hand;"><%=trim(rs("classname"))%></td>
</tr>
</table></td>
</tr>
<tr style="display:none" id='submenu<%=i%>'>
<td height="20">
<%
sql = "select * from admin_class where cid="&rs("classid")&" and isshow=1 order by pid desc,classid "
set rec = conn.execute (sql)
if not rec.eof then
do while not rec.eof
%>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="36%" align="right"><img src="ad_pic/ad_left_d.jpg" width="12" height="12"></td>
<td width="64%"><a href="<%=trim(rec("classurl"))%>tcgclassid=<%=rec("classid")%>" target="mainFrame"><%=trim(rec("classname"))%></a></td>
</tr>
</table>
<%
rec.movenext
loop
end if
rec.close
%>
</td>
</tr>
</table>
<%
rs.movenext
i=i+1
loop
end if
rs.close
%>
</td>
<td width="25" valign="top"><!--<img src="ad_pic/ad_left_s.jpg" width="25" height="324">--></td>
</tr>
</table>
</body>

问题解答:

你给的源代码少,不全

热点新闻