1) Script Title: Switch Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem:
I need one of my content to be expanded by default but allow preservance. I noticed this update on the DD page,To me the bug is not fixed because I have the following set and it is not working:Jan 25th, 07: to fix a bug with the defaultExpanded() feature not being honoured when persistence is enabled. Only applicable the first time the page is loaded within a browser session. Only .js file changed!
I cleared all cookies and cache and reload the page and the instance is not expanded. Can someone help?Code:<script type="text/javascript"> var instance=new switchcontent("switch-instance", "div") instance.setStatus('<img src="/img/open.png" /> ', '<img src="/img/closed.png" /> ') instance.setPersist(true, 7) instance.collapsePrevious(false) instance.defaultExpanded(0) instance.init() </script>



Reply With Quote

Bookmarks