Has anyone found a solution to this? My idea was to make a collapse all function that, when you hover over a particular div, collapses all open divs, then opens the particular one hovered. I created each animated div in an array which makes it easy to iterate. Something like this:
Code:
function collapseAll(){
for(i=0;i<boxes.length;i++){
boxes[i].slideup();
}
}
where boxes is the array of animated divs. Unfortunately is doesn't work properly for multiple reasons, you can view it here:
First reason: when you hover over the inner box, it disappears (not sure why).
Second reason: if you mouseover the box and immediately mouseout, then mouseover again, it hides the box, as it's collapsing everything immediately. Is there a boolean var to test if the div is already open? then you could do something like:
Code:
if(boxes[i].isOpen){boxes[i].slideup();}
I don't really have any other ideas, maybe someone with a bit more programming experience has some?
I've only tested this on Firefox 2.0 on a Mac, haven't done cross browser testing yet, but the problem remains the same.
Bookmarks