Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

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 ?
0
aot2002
Asked:
aot2002
  • 4
  • 3
1 Solution
 
ZvonkoSystems architectCommented:
And how to show it again?
0
 
darksinclairCommented:
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
 
aot2002Author Commented:
yea how to show it again too.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
aot2002Author Commented:
working on darksinclair's code now !
0
 
darksinclairCommented:
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
 
darksinclairCommented:
Excellent, thank you for the grade and the points! if I can be of any more assistance please let me know!

Cheers,
0
 
aot2002Author Commented:
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
 
darksinclairCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now