drewgraham
01 Sep 2006, 04:42 AM
I'm building a site (http://www.drewgraham.net/mauleverer/new/www/) which is using show / hide divs (I'd prefer to use CSS for the menu, but the client wants specific, non-standard fonts).
This kinda works for the menu, although I'm thinking of finding a script that saves the menu structure with cookies to save the whole auto-collapse thing. I'm a Scripting novice (I'm at the copy and paste level), so advise appreciated on that.
I've tweked the menu so that if JavaScript is disabled, the menu is automatically open by setting the DIVs to display:block in the CSS and having an onLoad script to set this to display:none.
I also want to put a notice that the site works better with JavaScript enabled and give info on how to enable it. This is currently done with an display:block DIV that's hidden by an onLoad JavaScript function.
The problem is that every time you go to a new page, for a second, everything appears as display:block - so you can see the menu fully opened and the 'how to enable JavaScript' DIV is shown.
How do I stop this?
Thanks all.
This kinda works for the menu, although I'm thinking of finding a script that saves the menu structure with cookies to save the whole auto-collapse thing. I'm a Scripting novice (I'm at the copy and paste level), so advise appreciated on that.
I've tweked the menu so that if JavaScript is disabled, the menu is automatically open by setting the DIVs to display:block in the CSS and having an onLoad script to set this to display:none.
I also want to put a notice that the site works better with JavaScript enabled and give info on how to enable it. This is currently done with an display:block DIV that's hidden by an onLoad JavaScript function.
The problem is that every time you go to a new page, for a second, everything appears as display:block - so you can see the menu fully opened and the 'how to enable JavaScript' DIV is shown.
How do I stop this?
Thanks all.