|
|
#1 (permalink) |
|
Marketing Maven
Surpass Staff
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
|
http://surpasshosting.com/serversnew.php
Anyone know how I can get all the content to contract by default, instead of being expanded?
http://surpasshosting.com/servers.php I used this: http://www.dynamicdrive.com/dynamici...chcontent2.htm Which... says it expands by default but I am sure this can be haxored. ![]() There is another script that *does* contract all the divs by default, but it doesn't work with Opera. The script I used works with IE, FF and Opera. That's the thing. ![]() [ edit | fixed up link since you're too lazy lol | ancyru ] Last edited by Ancyru; September 9th, 2005 at 5:34 AM.. |
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Super #1
Joined in Aug 2004
Hosted on SH58
1,688 posts
Gave thanks: 6
Thanked 7 times
|
Since you've got a 404 there, I'll take a stab in the dark. You have a bunch of <div>s that you want to be already expanded and when you click them it shrinks it? Instead of the other way 'round?
I don't know why that script wouldn't work. Can you link us/me?
__________________
- Evan Charlton | [site] | Server - SH58 |
|
|
|
|
|
#3 (permalink) |
|
Marketing Maven
Surpass Staff
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
|
Sorry, shortly after that was posted, it then became the active page for the dedicated servers.
http://www.surpasshosting.com/servers.php |
|
|
|
|
|
#5 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,084 posts
Gave thanks: 48
Thanked 131 times
|
Kayla, why not just execute the minimize all function on window load? Unfortunately the code you used sucks... Check out the source here: http://haugland.ca/toggle/ for a mucho easier way to do it.
Also, you should move your functions to an external *.js file as they only download once per visit and therefore reduce bandwidth use and decrease load time. ![]() |
|
|
|
|
|
#6 (permalink) | |
|
Skittles
Super #1
Joined in Aug 2004
Lives in a space ship
Hosted on dedi
6,815 posts
Gave thanks: 101
Thanked 199 times
|
hey kayla:
Quote:
__________________
Mountain Dew Knight
People should not be afraid of their governments. Governments should be afraid of their people. |
|
|
|
|
|
|
#7 (permalink) | |
|
Marketing Maven
Surpass Staff
Joined in May 2003
Lives in Orlando
24,749 posts
Gave thanks: 946
Thanked 806 times
|
Quote:
|
|
|
|
|
|
|
#9 (permalink) |
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,084 posts
Gave thanks: 48
Thanked 131 times
|
Yep, it makes use of DOM (I think.. just getting back into JavaScript) which is currently supported by all the latest
![]() I won't get into my standards talk though... but you should use JavaScript to hide them initially over CSS because of accessibility. If in the event it doesn't work in a given browser or JavaScript is disabled, it will degrade nicely. Let me know if you need implementation help. |
|
|
|