Click here to Skip to main content
14,737,119 members
Articles » Web Development » Client side scripting » General
Posted 16 Nov 2002


43 bookmarked

XP collapsible menu with description

Rate me:
Please Sign up or sign in to vote.
3.86/5 (7 votes)
18 Nov 2002
An update of my Windows XP Style Menu article, now with description supported for every link.

Sample Image - MenuWithDescription.gif


This is an update of my previous article (WindowsXP Style Menu) which creates a Windows XP look alike Panel Bar with the separation of structure, presentation and functions. Now this menu is updated to support transparent popup description for every link inside it.

Since this article uses the same code of the previous article, I just show here the structure (HTML) of the menu which you can just copy and paste to create as many submenus inside it as you need, without writing a single line of code.

The Structure (HTML)

The complete HTML is in the source code.

<!-- begin the menu -->
<div id="MainMenu">
  <!-- begin submenu -->
    <div style="width:180">
      <table cellpadding="1" cellspacing="0" class="Menu_Head">
          <td width="90%">ASP.NET</td>
          <td><img src="down.gif" border="0">&nbsp;</td>
    <div class="Menu_Items">
          <a href="">User Controls</a>
          <div class="Description">
            <div class="DescTitle">User Controls articles</div>
            View all articles about User Controls
          <a href="">Server Controls</a>
          <div class="Description">
            <div class="DescTitle">Server Controls articles</div>
            Tutorials show you how to write server controls
          <a href="">Custom Controls</a>
          <div class="Description">
            <div class="DescTitle">Custom Controls articles</div>
            Tutorials show you how to write advanced custom controls
          <a href="">Applications</a>
          <div class="Description">
            <div class="DescTitle">Applications</div>
            View all demo applications like guestbook, forum...
  <!-- end sub menu -->

The structure is quite simple, the menu starts with the first <div> tag, each submenu is nested inside it with the <span> tag. The Submenu header (title) is nested inside the <div style="width:180"> and all the links are nested inside the


. After every link, you should have a <div> to contain its description, it will automatically show when you move the mouse over the link.

That's it for the menu. Hope this could help you a bit.


  • 19 November 2002

    Fixed an expanding bug: clicking too fast on the expand/collapse button will result in an extra white space of the submenu. Thanks to Obliterator for pointing it out.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Singapore Singapore
No Biography provided

Comments and Discussions

nagen pnaja31-Aug-10 3:02
Membernagen pnaja31-Aug-10 3:02 
Generaldoes not work in firfox .... Pin
homano9-Nov-09 20:52
Memberhomano9-Nov-09 20:52 
Questionhave you find that there is a small bug in the script program? Pin
gordengu17-Apr-07 16:29
Membergordengu17-Apr-07 16:29 
QuestionFirefox doesnt work! Pin
Aboulmak9-Nov-06 23:15
MemberAboulmak9-Nov-06 23:15 
QuestionDoes anyone know how to do the same thing in ASP.NET ?? Pin
conankunkid5-Oct-05 5:02
Memberconankunkid5-Oct-05 5:02 
AnswerRe: Does anyone know how to do the same thing in ASP.NET ?? Pin
jay_dubal25-Feb-06 10:49
Memberjay_dubal25-Feb-06 10:49 
QuestionHow to Hide all menu when loaded Pin
Patrick Olurotimi Ige9-Jul-05 22:36
MemberPatrick Olurotimi Ige9-Jul-05 22:36 
GeneralNetscape Pin
scotthallett7-Apr-05 13:28
Memberscotthallett7-Apr-05 13:28 
QuestionHow to auto hide another when click one? Pin
thinhhangdieu30-Sep-04 18:17
Memberthinhhangdieu30-Sep-04 18:17 
AnswerRe: How to auto hide another when click one? Pin
all_i_want_is_everything2-Mar-06 4:58
Memberall_i_want_is_everything2-Mar-06 4:58 
GeneralDescriptions for only certain items Pin
Shawn M. Reed23-Mar-04 5:10
MemberShawn M. Reed23-Mar-04 5:10 
Generalshow active item Pin
Member 64796119-Mar-04 9:00
MemberMember 64796119-Mar-04 9:00 
GeneralRegarding maintaining the state Pin
fasilak19-Mar-04 5:45
Memberfasilak19-Mar-04 5:45 
GeneralRe: Regarding maintaining the state Pin
fasilak23-Mar-04 1:29
Memberfasilak23-Mar-04 1:29 
QuestionHow to use it with Netscape Pin
balpo15-Apr-03 18:42
Memberbalpo15-Apr-03 18:42 
AnswerRe: How to use it with Netscape Pin
Anonymous15-Apr-03 23:07
MemberAnonymous15-Apr-03 23:07 
GeneralRe: How to use it with Netscape Pin
burkazoid200319-Jan-04 14:45
Memberburkazoid200319-Jan-04 14:45 
Questionload on default? Pin
Anonymous19-Feb-03 21:12
MemberAnonymous19-Feb-03 21:12 
AnswerRe: load on default? Pin
Keertikiran11-May-07 2:38
MemberKeertikiran11-May-07 2:38 
Generalquestion with frame Pin
xslipwizx2-Feb-03 17:55
sussxslipwizx2-Feb-03 17:55 
GeneralRe: question with frame Pin
ericfgarcia11-Nov-03 18:21
Memberericfgarcia11-Nov-03 18:21 
GeneralRe: question with frame Pin
jjfatts18-May-06 12:12
Memberjjfatts18-May-06 12:12 
GeneralCool Pin
Steve McLenithan19-Nov-02 6:17
MemberSteve McLenithan19-Nov-02 6:17 
GeneralSmall bug expanding Pin
Obliterator18-Nov-02 7:38
MemberObliterator18-Nov-02 7:38 
GeneralRe: Small bug expanding Pin
tommy skaue19-Nov-02 0:32
Membertommy skaue19-Nov-02 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.