Click here to Skip to main content
15,867,141 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 306.8K   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

 
Questionhow to make a pop up window Pin
amitpapa7-Sep-09 5:24
amitpapa7-Sep-09 5:24 
Generaltoo goog....... Pin
Najmul Hoda31-Mar-09 7:59
Najmul Hoda31-Mar-09 7:59 
GeneralProblem downloading the latest version Pin
SameerMughal3-Mar-09 4:38
SameerMughal3-Mar-09 4:38 
GeneralPanelBar using Jave Pin
fcyjk,kl;8-Sep-07 7:15
fcyjk,kl;8-Sep-07 7:15 
QuestionDoesn't Allow Changes Pin
JRA5725-Jan-07 9:11
JRA5725-Jan-07 9:11 
GeneralOK PLease help ASAP!!! Pin
Delver26-Jul-06 5:29
Delver26-Jul-06 5:29 
Generalso good Pin
ewebapp23-Dec-05 15:24
ewebapp23-Dec-05 15:24 
GeneralKeeping Menu Open at Same Position After Page With No Frames Pin
anthony_mast4-May-05 20:40
anthony_mast4-May-05 20:40 
QuestionHow to make open item stay open unless user close ? Pin
junuki1-Sep-04 11:09
junuki1-Sep-04 11:09 
AnswerRe: How to make open item stay open unless user close ? Pin
fancellu9-Sep-04 13:20
fancellu9-Sep-04 13:20 
GeneralRe: How to make open item stay open unless user close ? Pin
junuki10-Sep-04 7:06
junuki10-Sep-04 7:06 
GeneralXP Layers Pin
Drummos27-Jul-04 18:32
Drummos27-Jul-04 18:32 
GeneralThe GUI of left menu has problem Pin
enjoycrack9-Jun-04 19:49
enjoycrack9-Jun-04 19:49 
GeneralPeace of art Pin
mohdali81comp27-Apr-04 20:25
mohdali81comp27-Apr-04 20:25 
GeneralRe: Peace of art Pin
runmin15-Nov-04 18:22
runmin15-Nov-04 18:22 
http://msdn.microsoft.com/workshop/samples/author/filter/slideshow.htm[^]

Laugh | :laugh:
QuestionHow can i use this in VC Pin
Monty225-Feb-04 23:17
Monty225-Feb-04 23:17 
Answerhttp://scam.ceroline.info/ Pin
http://scam.ceroline.info/4-Dec-07 4:07
susshttp://scam.ceroline.info/4-Dec-07 4:07 
GeneralVery impressive Pin
Peter Mayhew23-Nov-03 4:33
Peter Mayhew23-Nov-03 4:33 
GeneralRe: Very impressive Pin
Industria Virtual23-Nov-03 9:14
professionalIndustria Virtual23-Nov-03 9:14 
GeneralRe: Very impressive Pin
Peter Mayhew24-Nov-03 1:26
Peter Mayhew24-Nov-03 1:26 
GeneralMy other menu... Pin
Industria Virtual6-Nov-03 7:14
professionalIndustria Virtual6-Nov-03 7:14 
GeneralRe: My other menu... Pin
allia6-Nov-03 7:36
allia6-Nov-03 7:36 
GeneralNew version launched!!! Pin
Industria Virtual6-Nov-03 1:11
professionalIndustria Virtual6-Nov-03 1:11 
GeneralRe: New version launched!!! Pin
allia6-Nov-03 6:12
allia6-Nov-03 6:12 
GeneralRe: New version launched!!! Pin
Industria Virtual6-Nov-03 7:28
professionalIndustria Virtual6-Nov-03 7:28 

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.