Kikitten
09-25-2007, 07:08 PM
1) Script Title: Switch Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Hi... well I'm using the 2nd example.
And this is my website > http://www.animesbasket.com/kagome/
On Firefox and Opera it works, but the XHTML is wrong. So I want to do it in the right way.
I tried to hide just the <li> tags, 'cause I want to get together (when closed) the top of the menu with the bottom, just as you can see now, on Firefox and Opera.
But I made it by the wrong way, even it works...
<ul><div which hides><li's></div></ul>
So I created an image with the top and the bottom together, and then I could use it when it's closed, but I must use it as a background, not an image.
<script type="text/javascript">
var joeexample=new switchcontent("switchgroup2", "p") //Limit scanning of switch contents to just "p" elements
joeexample.setStatus('[open] ', '[closed] ')
joeexample.setColor('green', 'red')
joeexample.collapsePrevious(false) //Allow more than 1 content to be open simultanously
joeexample.setPersist(false)
joeexample.defaultExpanded(0,1)
joeexample.init()
</script>
I know I must do it in this line > joeexample.setStatus('[open] ', '[closed] ')
I tried many things, like stylesheet and scripts, but I wasn't able to do it.
If I wasn't clear, please ask.
Thanks.
Cristiane
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm
3) Describe problem:
Hi... well I'm using the 2nd example.
And this is my website > http://www.animesbasket.com/kagome/
On Firefox and Opera it works, but the XHTML is wrong. So I want to do it in the right way.
I tried to hide just the <li> tags, 'cause I want to get together (when closed) the top of the menu with the bottom, just as you can see now, on Firefox and Opera.
But I made it by the wrong way, even it works...
<ul><div which hides><li's></div></ul>
So I created an image with the top and the bottom together, and then I could use it when it's closed, but I must use it as a background, not an image.
<script type="text/javascript">
var joeexample=new switchcontent("switchgroup2", "p") //Limit scanning of switch contents to just "p" elements
joeexample.setStatus('[open] ', '[closed] ')
joeexample.setColor('green', 'red')
joeexample.collapsePrevious(false) //Allow more than 1 content to be open simultanously
joeexample.setPersist(false)
joeexample.defaultExpanded(0,1)
joeexample.init()
</script>
I know I must do it in this line > joeexample.setStatus('[open] ', '[closed] ')
I tried many things, like stylesheet and scripts, but I wasn't able to do it.
If I wasn't clear, please ask.
Thanks.
Cristiane