Results 1 to 6 of 6
Thread: tricky div hiding issue
Apr 12, 2008, 04:47 #1
- Join Date
- Jan 2006
- 0 Post(s)
- 0 Thread(s)
tricky div hiding issue
I have a div that I set its display to 'none' and becomes visible (on invisible again) when users click on a span that triggers a js function that switches display from 'none' to 'block' and vise versa.
What I did is I changed the display to 'block' as default, and added a js function that changes display to 'none' as soon as the page loads (using the onload command in the <body> tag).
The only problem that I have with this method is that the div does show up and only disappears once the page finishes loading. I want it to be completely unnoticeable until the user invokes the function that makes it visible.
Can anyone think of a way to do it?