The ontoggle event should be able to do that- that is, apply a CSS border to the currrently selected toggler or thumbnail. Try something like:
Code:
animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
if ($('#'+divobj.id+"-thumbnail").length==1) //if toggler link exists
$('#'+divobj.id+"-toggle").css('border', (state=='block')? '1px solid red' : '0 solid red')
}
Thia assumes that you've given each of the thumbnail image a unique ID attribute in the format "divid-thumbnail", for example:
Code:
<a href="#><img id="bob-thumbnail" /></a> <a href="#><img id="john-thumbnail" /></a>
Where "divid" is the ID of the DIV the thumbnail is expanding/ contracting.
Bookmarks