
<%@ 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>