注册 登录
编程论坛 ASP技术论坛

后台导航问题

编程要低调 发布于 2009-08-13 11:48, 466 次点击
后台导航我想做成动态获取的
但是出了点问题
<%
 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的时候却报缺少对象
哪位大侠指教下小弟
1 回复
#2
编程要低调2009-08-13 12:23
已经解决
   下面的ID没改
不好意思
1