Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

hiding framed menu bar on left side of screen

Posted on 2004-09-14
8
Medium Priority
?
210 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
[X]
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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:aot2002
ID: 12060863
working on darksinclair's code now !
0
 
LVL 5

Accepted Solution

by:
darksinclair earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…

604 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