Click here to Skip to main content
15,889,874 members
Articles / Programming Languages / Javascript
Article

Handy XP Style Menu

Rate me:
Please Sign up or sign in to vote.
4.81/5 (199 votes)
31 Oct 2003CPOL 307.9K   6K   189   51
This is a pretty menu in XP style. Easy to setup, highly customizable.

Sample Image - leftmenu.jpg

Introduction

This is a pretty menu in XP style. Its is easy to setup and highly customizable. If you find it useful, please vote for me!!! See a working demo here.

The Frames page

HTML
<html>
<head>
<title>Left Menu</title>
</head>
 
    <frameset framespacing="0" border="false" frameborder="0" cols="170,*">
   <frame name="menu" src="leftmenu.htm" frameborder="0" marginwidth="0" 
           marginheight="0" framespacing="0" scrolling="no" noresize>
   <frame name="master" src="master.htm" frameborder="0" marginwidth="0" 
           marginheight="0" framespacing="0" scrolling="no" noresize>
    </frameset>
 
 <noframes>
    <body bgcolor="#FFFFFF">
    <br><br><center>
    <h1>No Frames!</h1>
    <h4>No frames in your browser!</h4>
    </center></body>
 </noframes>
</frameset>

</html>

The Target page

HTML
<html>
<head>
    <title>Left Menu</title>
    <link rel='stylesheet' href='leftmenu.css'>
</head>

    <body leftmargin="0" topmargin="0" marginwidth="0" 
                        marginheight="0" bgcolor="#ffffff">
        
        <table border=0 cellpadding='10' cellspacing=0><tr><td>

        This is the Target frame (master).
        <p><hr>
        Please visit my website: 
          <a href='http://www.industriavirtual.com.br' 
          target='_blank'>http://www.industriavirtual.com.br</a>
          
        <br>And don't forget to vote me!!!
        <br>Marcelo Franco.
        
        </td></tr></table>
    
        </body>
</html>

The Menu page

HTML
<html>
<head>
    <meta http-equiv='page-enter' content='blendtrans(duration=0.1)'>
    <script language='javascript' src='leftmenu.js'></script>
    <link href='leftmenu.css' type='text/css' rel='stylesheet'>
    
    <base target='master'>
</head>
<body bgcolor='#ffffff' marginheight='0' marginwidth='0' 
                                topmargin='0' leftmargin='0'>
<table border='1' cellpadding='0' cellspacing='0' width='100%' 
                      height='100%'><tr><td valign='top'>
    <table border='0' cellspacing='1' cellpadding='0' width='100%' 
                     height='100%' bgcolor='#f1f1ed'><tr><td valign='top'>
    
    <div id='masterdiv'>
    
        <div class='menu' onclick="SwitchMenu('sub1')">
            <img style='vertical-align: middle' width=20 height=20 
            src='icons/txtmenu.gif' border=0 hspace=3>Text Folders</div>
            
            <span class='options' id='sub1'>
                <div class='option' 
                       onmouseover="this.style.background='#D8E4F8'" 
                       onmouseout="this.style.background='#f5f5f5'">
                <a href='http://www.google.com'>
                      <img style='vertical-align: middle' 
                      width=16 height=16 src='icons/txtfolder.gif' border=0 
                      hspace=3>Text Links</a></div>
    
                <div class='option' 
                     onmouseover="this.style.background='#D8E4F8'" 
                     onmouseout="this.style.background='#f5f5f5'">
<a href='http://www.industriavirtual.com.br/master.asp?code=webpacks&subcode=basico'>
                  <img style='vertical-align: middle' width=16 
                  height=16 src='icons/txtfolder.gif' 
                  border=0 hspace=3>Text Links</a></div>
    
                <div class='option' 
                      onmouseover="this.style.background='#D8E4F8'" 
                      onmouseout="this.style.background='#f5f5f5'">
                <a href='http://www.google.com'>
                    <img style='vertical-align: middle' width=16 
                    height=16 src='icons/txtfolder.gif' border=0 
                    hspace=3>Text Links</a></div>
            </span>
   
    </div>
    
    <div class='menu'>
        <a href='http://www.industriavirtual.com.br' 
        target='_top' onClick='top.window.close()'>
    <img style='vertical-align: middle' width=20 
        height=20 src='icons/logoff.gif' border=0 
        hspace=3>Logoff</a></div>
    
    <tr><td align='center' valign='bottom'>
        <a href='http://www.industriavirtual.com.br' target='_blank'>
    <img src='industria.gif' width='125' height='13' 
        hspace='0' vspace='10' border='0' alt='Industria Virtual...'></a>
    
    </td></tr></table>
</td></tr></table>
</body>
</html>

That's All Folks.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer Industria Virtual
Brazil Brazil
Taylor made web applications for you and your business.

Comments and Discussions

 
GeneralRe: New version launched!!! Pin
Stephen Taylor6-Nov-05 14:10
Stephen Taylor6-Nov-05 14:10 
GeneralRe: New version launched!!! Pin
cloudking1196613-Jun-06 19:59
cloudking1196613-Jun-06 19:59 
GeneralThis is not ASP.NET Pin
GeorgeMar5-Nov-03 23:16
GeorgeMar5-Nov-03 23:16 
GeneralRe: This is JavaScript!!! Pin
Industria Virtual6-Nov-03 0:41
professionalIndustria Virtual6-Nov-03 0:41 
GeneralRe: This is JavaScript!!! Pin
GeorgeMar6-Nov-03 0:52
GeorgeMar6-Nov-03 0:52 
GeneralRe: This is JavaScript!!! Pin
Member 6186756-Nov-03 3:57
Member 6186756-Nov-03 3:57 
GeneralRe: This is JavaScript!!! Pin
GeorgeMar6-Nov-03 4:06
GeorgeMar6-Nov-03 4:06 
GeneralStop here! Pin
Industria Virtual6-Nov-03 4:27
professionalIndustria Virtual6-Nov-03 4:27 
GeneralRe: Stop here! Pin
Nathan Ridley8-Nov-05 12:49
Nathan Ridley8-Nov-05 12:49 
GeneralRe: This is JavaScript!!! Pin
RichardGrimmer6-Nov-06 0:51
RichardGrimmer6-Nov-06 0:51 
GeneralCool Man !!!!! but one question Pin
Trance Junkie30-May-05 2:17
Trance Junkie30-May-05 2:17 
GeneralRe: Cool Man !!!!! but one question Pin
Anonymous14-Oct-05 4:43
Anonymous14-Oct-05 4:43 
GeneralWhich browsers support this. Pin
Thomas Jansen5-Nov-03 20:28
Thomas Jansen5-Nov-03 20:28 
GeneralRe: Which browsers support this. Pin
Industria Virtual6-Nov-03 0:39
professionalIndustria Virtual6-Nov-03 0:39 
GeneralRe: Which browsers support this. Pin
Thomas Jansen6-Nov-03 1:18
Thomas Jansen6-Nov-03 1:18 
GeneralRe: Which browsers support this. Pin
DFU236-Nov-03 7:33
DFU236-Nov-03 7:33 
GeneralSimplify Pin
DFU234-Nov-03 4:34
DFU234-Nov-03 4:34 
GeneralRe: Simplify Pin
allia6-Nov-03 6:29
allia6-Nov-03 6:29 
GeneralRe: Simplify Pin
DFU236-Nov-03 7:38
DFU236-Nov-03 7:38 
GeneralRe: Simplify Pin
Industria Virtual6-Nov-03 8:03
professionalIndustria Virtual6-Nov-03 8:03 
GeneralNice... Pin
theJazzyBrain4-Nov-03 0:36
theJazzyBrain4-Nov-03 0:36 
GeneralGood work Pin
Joel Holdsworth2-Nov-03 3:31
Joel Holdsworth2-Nov-03 3:31 
GeneralRe: Good work Pin
JustAGhost3-Nov-03 21:34
JustAGhost3-Nov-03 21:34 
GeneralRe: Good work Pin
Industria Virtual4-Nov-03 1:30
professionalIndustria Virtual4-Nov-03 1:30 
GeneralClicking Pin
Mandalay1-Nov-03 23:30
Mandalay1-Nov-03 23:30 

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.