Solved

hiding framed menu bar on left side of screen

Posted on 2004-09-14
8
204 Views
Last Modified: 2008-02-01
http://www.dynamicdrive.com/dynamicindex1/outbar2/index.htm

I am using the code from the site available for my personal webpage project.
i would like to allow it to hide by clicking on the side bar

        Is this possible ?
0
Comment
Question by:aot2002
  • 4
  • 3
8 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 12059327
And how to show it again?
0
 
LVL 5

Expert Comment

by:darksinclair
ID: 12060831
Will this work?

at teh very start of the left hand menu bar put this:

<DIV ID="toHide">

and at the end of what you dotn want put
</DIV>
<INPUT TYPE="button" value="hide/Show MenuBar" onClick="( ((document.getElementById('toHide').style.display == 'none') ? document.getElementById('toHide').style.display='block' : document.getElementById('toHide').style.display='none'));">

Cheers,
0
 
LVL 1

Author Comment

by:aot2002
ID: 12060862
yea how to show it again too.
0
 
LVL 1

Author Comment

by:aot2002
ID: 12060863
working on darksinclair's code now !
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Accepted Solution

by:
darksinclair earned 500 total points
ID: 12067285
Was/Is this code suitable for you or do you have something else in mind?

If I can be of any more assistance please let me know.

Cheers,

0
 
LVL 5

Expert Comment

by:darksinclair
ID: 12068492
Excellent, thank you for the grade and the points! if I can be of any more assistance please let me know!

Cheers,
0
 
LVL 1

Author Comment

by:aot2002
ID: 12154944
Hey can i use this strictly with a page with Javascript creating a menubar ?

example a page has only a javascript which creates a menu and i want to use this to hide the menu bar ?

if i wrap it around <script> in the page and </script> it doesnt hide it ?
should it
0
 
LVL 5

Expert Comment

by:darksinclair
ID: 12155473
is whats inside the <SCRIPT> and </SCRIPT> a function or is it simply a bunch of code that gets executed as soon as it is parsed by the browser?  (i.e.: Not inside a function blah(){  } ? )

if your code is NOT inside a function and simply by itself and gets called as soon as it is parsed... then yes I do believe that wrapping the DIV tag around the Script tags will do the trick for you (however im not 100% sure but I do believe so.

Cheers,
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now