-
Switch Content script II
1) Script Title: Switch Content Script II (icon based)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...chcontent2.htm
3) Describe problem: I can not get the Persist to work. Everything else works fine except this feature. How do I get it to remember which section is expanded? Here's settings and initialization part of the script...
<script type="text/javascript">
var section=new switchcontent("switchgroup1", "div")
section.setStatus('<img src="../../media/hide.gif" /> ', '<img src="../../media/show.gif" /> ')
section.collapsePrevious(false)
section.setPersist(true, 365)
section.init()
</script>
-
-
Do you have multiple switch content instances on the same page? If so, remember that the variable "section" cannot be repeated, and must be unique for each instance. Other than that, it should work...
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks