1) Script Title: Animated Collapsible DIV v2.2
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...suppliment.htm
3) Describe problem:
cant seem to get the ontoggle event handler to work on my page, http://www.imajeb.com.au/news.html. I'm trying to set it up so that the little triangle rotates as the div is expaned but all I seem to get is random image errors.
This is the code as taken from my page and were I think the error is located:
[CODE]
<script type="text/javascript">
animatedcollapse.addDiv('b19040901', 'fade=0,speed=400,group=blog,hide=1')
animatedcollapse.ontoggle=function($, divobj, state){
if (divobj.id=="b19040901") document.getElementById(divobj.id+"-toggle").src=(state=="block")? "open.gif" : "close.gif"
}
animatedcollapse.init()
</script>
[CODE]
I'm still new to this so still learning but I have been over it time and time again and am just missing something.
Thanks in advance,
Mitch.



Reply With Quote

Bookmarks