Vb. NET implement WINODWS-style looming menu

Source: Internet
Author: User
Tags modify
Menus are implemented primarily through panel and ImageButton two controls, which are simple.
<script language= "VB" runat= "Server" >
Sub Button1_Click (sender as Object, E as ImageClickEventArgs)
If mypanel1.visible = True Then
Mypanel1.visible = False
SBMR. Imageurl= "Images/sb_show.gif"
Else
Mypanel1.visible = True
SBMR. Imageurl= "Images/sb_hide.gif"
End If
End Sub
Sub button2_click (sender as Object, E as ImageClickEventArgs)
If mypanel2.visible = True Then
Mypanel2.visible = False
BJMR. Imageurl= "Images/bj_show.gif"
Else
Mypanel2.visible = True
BJMR. Imageurl= "Images/bj_hide.gif"
End If
End Sub
Sub button3_click (sender as Object, E as ImageClickEventArgs)
If mypanel3.visible = True Then
Mypanel3.visible = False
BJKC. Imageurl= "Images/kc_show.gif"
Else
Mypanel3.visible = True
BJKC. Imageurl= "Images/kc_hide.gif"
End If
End Sub
Sub button4_click (sender as Object, E as ImageClickEventArgs)
If mypanel4.visible = True Then
Mypanel4.visible = False
Bjrk. Imageurl= "Images/rk_show.gif"
Else
Mypanel4.visible = True
Bjrk. Imageurl= "Images/rk_hide.gif"
End If
End Sub
Sub button5_click (sender as Object, E as ImageClickEventArgs)
If mypanel5.visible = True Then
Mypanel5.visible = False
Bjck. Imageurl= "Images/ck_show.gif"
Else
Mypanel5.visible = True
Bjck. Imageurl= "Images/ck_hide.gif"
End If
End Sub
Sub button6_click (sender as Object, E as ImageClickEventArgs)
If mypanel6.visible = True Then
Mypanel6.visible = False
Bjjh. Imageurl= "Images/jh_show.gif"
Else
Mypanel6.visible = True
Bjjh. Imageurl= "Images/jh_hide.gif"
End If
End Sub
Sub Button7_click (sender as Object, E as ImageClickEventArgs)
If mypanel7.visible = True Then
Mypanel7.visible = False
BJQT. Imageurl= "Images/qt_show.gif"
Else
Mypanel7.visible = True
BJQT. Imageurl= "Images/qt_hide.gif"
End If
End Sub
</Script>
<title> left Border </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type= "Text/css" >
<!--
Body {
margin-left:0px;
margin-top:0px;
margin-right:0px;
margin-bottom:0px;
Background-color: #CFEFFA;
}
body,td,th {
Color: #000066;
}
. style4 {color: #FFFFFF}
a:link {
Color: #000066;
Text-decoration:none;
}
a:visited {
Text-decoration:none;
Color: #000066;
}
a:hover {
Text-decoration:none;
Color: #000066;
}
a:active {
Text-decoration:none;
Color: #000066;
}
-->
</style>
<body>
<form runat= "Server" >

<asp:imagebutton runat= "Server" id= "SBMR" imageurl= "Images/sb_show.gif" onclick= "Button1_Click"/><br>
<asp:panel runat= "Server" id= "MyPanel1" horizontalalign= "left" Visible = "False" >
<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolordark=" #FFFFFF "bordercolorlight=" #A7D2ED "Bgcolor=" #CFEFFA ">
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "sbmr/addsbmr.aspx" target= "mainFrame" > Increase </a></div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Modify </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "sbmr/sbmr.aspx" target= "mainFrame" > Query </a></div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Delete </div></td>
</tr>
</table>
</Asp:Panel>

<asp:imagebutton runat= "Server" id= "BJMR" imageurl= "Images/bj_show.gif" onclick= "button2_click"/><br>
<asp:panel runat= "Server" id= "MyPanel2" horizontalalign= "left" Visible = "False" >
<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolordark=" #FFFFFF "bordercolorlight=" #A7D2ED "Bgcolor=" #CFEFFA ">
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "bjmr/add.aspx" target= "mainFrame" > Increase </a></div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "bjmr/edit.aspx" target= "MainFrame" > Modify </a></div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "bjmr/search.aspx" target= "mainFrame" > Query </a></div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Delete </div></td>
</tr>
</table>
</asp:panel>

<asp:imagebutton runat= "Server" id= "BJKC" imageurl= "Images/kc_show.gif" onclick= "Button3_Click"/><br>
<asp:panel runat= "Server" id= "MyPanel3" horizontalalign= "left" Visible = "False" >
<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolordark=" #FFFFFF "bordercolorlight=" #A7D2ED "Bgcolor=" #CFEFFA ">
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "bjkc/bjkc.aspx" target= "mainFrame" > Query </a></div></td>
</tr>
</table>
</asp:panel>

<asp:imagebutton runat= "Server" id= "Bjrk" imageurl= "Images/rk_show.gif" onclick= "Button4_Click"/><br>
<asp:panel runat= "Server" id= "MyPanel4" horizontalalign= "left" Visible = "False" >
<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolordark=" #FFFFFF "bordercolorlight=" #A7D2ED "Bgcolor=" #CFEFFA ">
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Add </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Modify </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Query </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Delete </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "Center" > Statistics </div></td>
</tr>
</table>
</asp:panel>


<asp:imagebutton runat= "Server" id= "Bjck" imageurl= "Images/ck_show.gif" onclick= "Button5_click"/><br>
<asp:panel runat= "Server" id= "MyPanel5" horizontalalign= "left" Visible = "False" >
<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolordark=" #FFFFFF "bordercolorlight=" #A7D2ED "Bgcolor=" #CFEFFA ">
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Add </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Modify </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Query </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Delete </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "Center" > Statistics </div></td>
</tr>
</table>
</asp:panel>

<asp:imagebutton runat= "Server" id= "Bjjh" imageurl= "Images/jh_show.gif" onclick= "Button6_click"/><br>
<asp:panel runat= "Server" id= "MyPanel6" horizontalalign= "left" Visible = "False" >
<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolordark=" #FFFFFF "bordercolorlight=" #A7D2ED "Bgcolor=" #CFEFFA ">
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "bjjh/ydjh.aspx" target= "MainFrame" > should be ordered </a></div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "bjjh/yjjh.aspx" target= "MainFrame" > should be paid </a></div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" ><a href= "bjjh/search.aspx" target= "mainFrame" > Query </div></a></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Add </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Delete </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Modify </div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "Center" > Statistics </div></td>
</tr>
</table>
</asp:panel>

<asp:imagebutton runat= "Server" id= "BJQT" imageurl= "Images/qt_show.gif" onclick= "Button7_click"/><br>
<asp:panel runat= "Server" id= "MyPanel7" horizontalalign= "left" Visible = "False" >
<table width= "border=" 1 "cellpadding=" 0 "cellspacing=" 0 "bordercolordark=" #FFFFFF "bordercolorlight=" #A7D2ED "Bgcolor=" #CFEFFA ">
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Other [1]</div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Other [2]</div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Other [3]</div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Other [4]</div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Other [5]</div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Other [6]</div></td>
</tr>
<tr>
&LT;TD onmouseout= "this.style.backgroundcolor=" "onmouseover=" this.style.backgroundcolor= ' #FFcccc ' "><div align= "center" > Other [7]</div></td>
</tr>
</table>
</asp:panel>
</form>
</body>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.