aot2002
asked on
hiding framed menu bar on left side of screen
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 ?
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 ?
And how to show it again?
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.disp lay == 'none') ? document.getElementById('t oHide').st yle.displa y='block' : document.getElementById('t oHide').st yle.displa y='none')) ;">
Cheers,
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(
Cheers,
ASKER
yea how to show it again too.
ASKER
working on darksinclair's code now !
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Excellent, thank you for the grade and the points! if I can be of any more assistance please let me know!
Cheers,
Cheers,
ASKER
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
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
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,
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,