想做出当鼠标移动到按钮上,就会出现下拉菜单,点击下拉菜单会刷新页面或转到别的页面去的功能,在网上有看过一些资料,但是小弟基础不太好,很多地方看不懂,求达人们指点的详细些,另外脚本代码最好是VB的,谢谢了

解决方案 »

  1.   

    这个我也想过,在网上查了一些资料,不过都是用JavaScript实现的。如果你做的是信息系统,那我建议你劝说你的客户不要使用下拉菜单--因为大量使用JavaScript会使你的系统难以维护,毕竟系统的稳定性哈功能是最重要的。如果你开发的是网页,必须要使用那种华丽的界面,你可以试试专门生成下拉菜单的软件,唉,具体的名字我忘了,对不起。
      

  2.   

    Infragistics NetAdvantage
    WebMenu
      

  3.   

    ASP.NET写无限级下拉菜单不再难 
     
     
     
    作者:佚名    文章来源:internet    点击数:194    更新时间:2004-9-2 
     
     
    <%@ Page Language="C#" %> 
    <html> 
    <!-- ASP.NET 2.0的例子 --> 
    <head runat="server"> 
    </head> 
    <body> 
    <form runat="server"> <h3>下拉菜单的例子</h3> <!-- Use declarative syntax to create the --> 
    <!-- menu structure. Submenu items are --> 
    <!-- created by nesting them in parent menu --> 
    <!-- items. --> 
    <asp:menu id="NavigationMenu" 
    disappearafter="2000" 
    staticdisplaylevels="2" 
    staticsubmenuindent="10" 
    orientation="Horizontal" 
    font-names="Arial" 
    target="_blank" 
    runat="server"> <staticmenuitemstyle backcolor="#DDDDDD" 
    forecolor="red"/> 
    <statichoverstyle backcolor="#DDDDDD"/> 
    <dynamicmenuitemstyle backcolor="#EEEEEE" 
    forecolor="red"/> 
    <dynamichoverstyle backcolor="#DDDDDD" 
    forecolor="Black"/> <items> 
    <asp:menuitem navigateurl="http://dotnet.aspx.cc/" 
    text="首页" 
    tooltip="首页"> 
    <asp:menuitem navigateurl="http://dotnet.aspx.cc/ShowList.aspx?id=1" 
    text="ASP.NET 栏目" 
    tooltip="ASP.NET 栏目"> 
    <asp:menuitem navigateurl="Classical.aspx" 
    text="ASP.NET 最新文章" 
    tooltip="ASP.NET 最新文章"/> 
    <asp:menuitem navigateurl="Rock.aspx" 
    text="ASP.NET 问与答" 
    tooltip="ASP.NET 问与答"> 
    <asp:menuitem navigateurl="Classical.aspx" 
    text="ASP.NET 最新文章" 
    tooltip="ASP.NET 最新文章"/> 
    <asp:menuitem navigateurl="Classical.aspx" 
    text="ASP.NET 最新文章" 
    tooltip="ASP.NET 最新文章"/> 
    </asp:menuitem> 
    <asp:menuitem navigateurl="Jazz.aspx" 
    text="Jazz" 
    tooltip="Jazz"/> 
    </asp:menuitem> 
    <asp:menuitem navigateurl="Movies.aspx" 
    text="Movies" 
    tooltip="Movies"> 
    <asp:menuitem navigateurl="Action.aspx" 
    text="Action" 
    tooltip="Action"> 
    <asp:menuitem navigateurl="Drama.aspx" 
    text="Drama" 
    tooltip="Drama"/> 
    </asp:menuitem> 
    <asp:menuitem navigateurl="Drama.aspx" 
    text="Drama" 
    tooltip="Drama"/> 
    <asp:menuitem navigateurl="Musical.aspx" 
    text="Musical" 
    tooltip="Musical"/> 
    </asp:menuitem> 
    </asp:menuitem> 
    </items> 
    </asp:menu> 
    </form> 
    </body> 
    </html>
     
     
    看看有用没?
      

  4.   

    dropdownlist onselectchange事件