Yeah, that's what I mean. Each toggler actually expands two DIVs each. I'll paste the javscript code and the html links for illustration purposes. : )
So, here's the javascript I have (with the animated collapse) ... this all works perfectly right now.
Code:
<script type="text/javascript">
animatedcollapse.addDiv('presseartikel_anzahl','group=presse_sub')
animatedcollapse.addDiv('copyright_info','group=presse_sub')
animatedcollapse.addDiv('p_artikel_2009','group=p_artikel')
animatedcollapse.addDiv('p_artikel_2008','group=p_artikel')
animatedcollapse.addDiv('pressefotos_big','group=p_artikel')
animatedcollapse.ontoggle=function($, divobj, state){
if (divobj.id=="pressefotos_big") //only react to this DIV
document.getElementById(divobj.id+"-toggle").src=(state=="block")? "images/presse_nav/nav_button_pressefotos_r.jpg" : "images/presse_nav/nav_button_pressefotos_g.jpg"
if (divobj.id=="presseartikel_anzahl") //only react to this DIV
document.getElementById(divobj.id+"-toggle").src=(state=="block")? "images/presse_nav/nav_button_presseartikel_r.jpg" : "images/presse_nav/nav_button_presseartikel_g.jpg"
if (divobj.id=="p_artikel_2009" || divobj.id=="p_artikel_2008" || divobj.id=="p_artikel_2005") //only react to these DIVs
document.getElementById(divobj.id+"-toggle").className=(state=="block")? "archiv_jahr_rot" : "archiv_jahr"
}
animatedcollapse.init()
</script>
And here's the links in the html code, where the togglers are opening and contracting two DIVs each, at one time.
Code:
<a href="javascript:animatedcollapse.show(['copyright_info', 'pressefotos_big'])" ><img src="images/presse_nav/nav_button_pressefotos_r.jpg" id="pressefotos_big-toggle" name ="pressefotos" border="0" /></a>
<a href="javascript:animatedcollapse.show(['presseartikel_anzahl', 'p_artikel_2009'])" ><img src="images/presse_nav/nav_button_presseartikel_g.jpg" id="presseartikel_anzahl-toggle" name ="presseartikel" border="0" /></a>
Bookmarks