后台导航问题
后台导航我想做成动态获取的但是出了点问题
<%
dim i
i=2
do while not rs.eof
dim toggle
toggle="new Element.toggle('submenu1')"
lefttoggle=left(toggle,27)
righttoggle=right(toggle,2)
toggle=lefttoggle & i & righttoggle
response.Write(toggle)
%>
<table cellpadding="0" cellspacing="0" width="167" align="center">
<tr>
<td height="28" class="menu_title" onMouseOver="this.className='menu_title2'" onMouseOut="this.className='menu_title'" background="<%=rs("picture")%>" id="menuTitle1" onClick="<%=toggle%>" style="cursor:hand;"><span class="glow"><%=rs("NavName")%></span></td>
</tr>
<tr>
<td style="display:none" align="right" id="submenu2"><div class="sec_menu" style="width:165">
</div>
<div style="width:167">
<table cellpadding="0" cellspacing="0" align="center" width="130">
<tr>
<td height="5"></td>
</tr>
</table>
</div></td>
</tr>
</table>
<%
i=i+1
rs.movenext
loop%>
toggle值变了
onclick调用JS的时候却报缺少对象
哪位大侠指教下小弟