This is a discussion on "show hide script problem" within the JavaScript Forum section. This forum, and the thread "show hide script problem are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
show hide script problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
I have started to implement the unobtrusive show / hide script found at Exit 404
http://www.exit404.com/2005/57/unobt...culous-effects However I need to start with all the areas closed rather than open. Any Ideas how this can be achieved whilst keeping it unobtrusive? TIA Anthony |
|
|
|
|||
|
Re: show hide script problem
I haven't read through all the code but he appears to be using the css display attribute with values of none and block to hide and show repsectively.
If you want to start with them all closed up, then make display: none; the default state for your boxes. |
|
||||
|
Re: show hide script problem
Here's a link to a script I made that should do what you want.
problem with a show/hide toggle thing (JS) |
|
|||
|
Re: show hide script problem
Hi Peeps,
Thanks for the replys. I should have made myself clearer, what I need the script to do is:
Last edited by Scribble69; Nov 27th, 2006 at 09:45. |
|
|||
|
Re: show hide script problem
In your criteria:
1. How do you propose this happens then? Cursor rollover. 2. Then the default needs to be 'open' and you use script on load to close them. 3. Assumes user allows cookie. How important is this anyway? 4. Pardon??? 5. See 2. above. |
![]() |
| Tags |
| unobtrusive javascript |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Show Hide with JS | abis123 | JavaScript Forum | 4 | Dec 13th, 2007 05:39 |
| [SOLVED] Show&Hide Div Box | Maska | JavaScript Forum | 6 | Oct 1st, 2007 11:04 |
| Show/Hide JS | pa007 | JavaScript Forum | 0 | Apr 6th, 2007 19:18 |
| problem with a show/hide toggle thing (JS) | belledumonde | JavaScript Forum | 1 | Sep 5th, 2006 20:24 |
| Show/Hide Div Help | Trebz | JavaScript Forum | 2 | Feb 21st, 2006 22:37 |