Orlando Dude
04-20-2007, 10:54 AM
1) Script Title: Switch Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem: Is it possible to put the 'invocation code' in an external .js file or inside 'switchcontent2.js' when using common settings across multiple pages?
<script type="text/javascript">
var vstext=new switchcontent("vsgroup", "p") //, "p" Limit scanning of switch contents to just "p" elements
vstext.setStatus('[less...] ', '[more...] ')
vstext.setColor('E4B1B1', '505050')
vstext.setPersist(false)
vstext.collapsePrevious(false) //Allow more than 1 content to be open simultanously
vstext.defaultExpanded()
vstext.init()
</script>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem: Is it possible to put the 'invocation code' in an external .js file or inside 'switchcontent2.js' when using common settings across multiple pages?
<script type="text/javascript">
var vstext=new switchcontent("vsgroup", "p") //, "p" Limit scanning of switch contents to just "p" elements
vstext.setStatus('[less...] ', '[more...] ')
vstext.setColor('E4B1B1', '505050')
vstext.setPersist(false)
vstext.collapsePrevious(false) //Allow more than 1 content to be open simultanously
vstext.defaultExpanded()
vstext.init()
</script>