Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

hiding framed menu bar on left side of screen

Posted on 2004-09-14
8
206 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

by:aot2002
ID: 12060863
working on darksinclair's code now !
0
 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Diminish Pop-up  in 3 seconds 7 44
Running a javascript project in WebStorm 2 24
Do alert on select 6 13
Why is initialize not a function? 8 17
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

792 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