1) Script Title: Switch Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem:
Im not sure how to make the Demo 2 script stay in the closed state on opening the browser? It works in Firefox but not in Safari?
What values do I need to pass inorder to keep my div closed on load?
Here is what I have:
Code:<script type="text/javascript"> var joeexample=new switchcontent("switchgroup", "") //Limit scanning of switch contents to just "p" elements joeexample.setStatus('<img src="../images/icon-hide.gif" alt="[hide]" />', '<img src="../images/icon-show.gif" alt="[show]" />') joeexample.setColor('', '') joeexample.collapsePrevious(false) //Allow more than 1 content to be open simultanously joeexample.setPersist(false) joeexample.defaultExpanded(0,1) joeexample.init() </script>



Reply With Quote

Bookmarks