Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-24-2010, 03:25 PM #1
- Join Date
- Jul 2010
- Thanked 0 Times in 0 Posts
Show / Hide div via onload on menu
Hello, at the moment I'm creating a website where on the frontpage (index.php) there is 2 divs that contains first a monitor-image with 3 computer screens, and then a div, that set an overlay over 2 of the screens - the divs like this:
<div id="monitor_overlay"></div> //Contains the overlay
<div id="lastest"></div> //Contains the screens
The CSS is:
Those screens are needed on the index.php only - other content will be shown on the other sites.
When loading the site it will automaticly load index.php - aka it shows the divs.
Then when I press on the menu-button "Blog" or "Portfolio" it should hide the divs "monitor_overlay" and "lastest"
but then if I press on "Home" again - I want the divs to be shown - How do I do this?
onclick="document.body.style.background='#169EF2 URL(\'images/background-darkblue.jpg\') center repeat-y fixed';"
But hiding/showing a div when clicking a menu button is really a big problem for me - the only way I could se it should work should be something like this:
Any that can help? it would be so wonderful!
Thank you, best regards,