1) Script Title: switch content script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tchcontent.htm
3) Describe problem:
im using demo 2 with "content is hidden" as default
i did it by removing this line
my problem when i use this code..Code:joeexample.defaultExpanded(0,1)
Code:<p id="joecontent1" class="switchgroup2"> <{foreach item=item from=$mydata}> <table> <tr> <td> <{include file="section.html" item=$item}> </td> </tr></table> <{/foreach}> </p>
- the content is open when loading..i need it to be hidden
- when i clicked open/closed/title nothing happen..it kept displaying
how do i make this work ?
what should i replace p with in the code below ?
i tried <table> and <td> it does not work
Code:var joeexample=new switchcontent("switchgroup2", "p")



Reply With Quote

Bookmarks