1) Script Title:
Switch content script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem:
How do i get the contents to be open on default?
1) Script Title:
Switch content script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem:
How do i get the contents to be open on default?
Inside function do_onload(), find and modify the below code block:
The code in red is new. That will cause the contents to be expanded by default, unless persistence is enabled and there is a previous state remembered. In that case that takes precedence.Code:if (!firsttimeload) revivecontent() } else sweeptoggle('expand')
Also, the menu doesn't seem to stay the same when i visit a new page? just when i return to one i have visited. Can this be changed?
See:
http://www.dynamicdrive.com/forums/s...ead.php?t=8186
Especially post 6:
http://www.dynamicdrive.com/forums/s...89&postcount=6
There is a fully updated script with site-wide cookies at the end of post 6 in that thread.
Last edited by jscheuer1; 11-05-2006 at 09:53 AM.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Dude, thats perfect! You can see it work at www.yibbe.com now! cheers!
Bookmarks