Click here to Skip to main content
15,881,248 members
Articles / Web Development / HTML
Article

Outlook Style Menu With Collapse Side Menu

Rate me:
Please Sign up or sign in to vote.
2.40/5 (21 votes)
15 Aug 2006CPOL 113.9K   3.4K   59   13
Very good outlook style menu with collapse side menu

Sample Image - collapse_menu.png

Introduction

I have read an "BalaNet" article at  http://www.codeproject.com/useritems/XPMenu.asp  which explains the dropdown xp style menu  that the great work

Just I would like to add new features,

1-Collapse side menu.

2-Change the xp style menu in to Outlook style bar.(Using CSS File "SlideMenu.css")

I think that most developers suffer from the problem of the design of the menu,needs thier application GUI like Outlook or XP Style,

Therefore I think that this menu provide solution .


Source code contain to

    * SlideMenu.css file
    * menu.js file


Import Css file in your page

<LINK href="SlideMenu/images/SlideMenu.css" type="text/css" rel="stylesheet">


Collaps side menu feature permit to hide side menu from page as a client script

Hide menu function:

<script type="text/javascript">

function lefthide() {

var fr = parent.document.getElementById("sbCont");

if(fr.style.display==""){

fr.style.display="none";

change('outlookside', 'outlookBarExpand')

}

else{

fr.style.display="";

change('outlookside', 'outlookBarcollapse')

}

}

function change(id, newClass) {

identity=document.getElementById(id);

identity.className=newClass;

}

</script>



I hope that I have succeeded in making this article and i wish to be useful

License

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


Written By
Software Developer (Senior) NTRA
Egypt Egypt
I am a Software Engineer working for NTRA , a National Telecom Regulatory Authority, Smart village - Giza -Egypt

Comments and Discussions

 
Questionlittle bug Pin
kroooz17-Oct-11 21:16
kroooz17-Oct-11 21:16 
GeneralUsing this control in Master Page Pin
Matthew Taylor1-Mar-10 8:11
Matthew Taylor1-Mar-10 8:11 
GeneralI tried using it Pin
israa1711-Nov-09 21:22
israa1711-Nov-09 21:22 
Hi, thanks so much for your menu control , it's great but i have a small problem using it,
when i click an item to direct me to another aspx page or even empty button to just go to the server , the whole menu collapse and i need the menu to keep its state whether collapsed or not


can u help me please
Generalthanks very much Pin
maqiuyu26-Sep-09 17:12
maqiuyu26-Sep-09 17:12 
GeneralMy vote of 1 Pin
KKV10006-Jul-09 21:39
KKV10006-Jul-09 21:39 
GeneralGood...More Idea Pin
Hany Shebl24-Nov-08 21:24
Hany Shebl24-Nov-08 21:24 
QuestionNice Job But some problem with mozilla Pin
SPA_Admin25-May-07 3:17
SPA_Admin25-May-07 3:17 
GeneralNice job Pin
Prajak.Kwangswart27-Feb-07 15:05
Prajak.Kwangswart27-Feb-07 15:05 
GeneralTab Style Pin
vp200016-Aug-06 5:30
vp200016-Aug-06 5:30 
GeneralNice Job -I have something similar Pin
rodrigo diniz16-Aug-06 2:04
rodrigo diniz16-Aug-06 2:04 
AnswerRe: Nice Job -I have something similar Pin
Youssef Saad22-Aug-06 22:06
Youssef Saad22-Aug-06 22:06 
GeneralGood Job Pin
cpopham10-Aug-06 8:12
cpopham10-Aug-06 8:12 
AnswerRe: Good Job Pin
Youssef Saad15-Aug-06 3:16
Youssef Saad15-Aug-06 3:16 

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.