Hi all, I would like the Accordion to open Panels onMouseOver instead of onClick. How to do this. A simple modification like 'onMouseOver="accordion(this)"' ends up with weird results. thanx in Advance, best Regards, Rolf
on 28.03.2007 14:20
on 20.07.2007 20:31
Did anyone ever have any luck getting the onmouseover working? I was looking to do the same thing and was having some problems.
on 22.08.2008 19:51
I was able to do this by adding code after creating my Accordion to
attach the mouseover event to the same functionality the Accordion class
attaches the click event to. Here is the javascript I used (see
attachment for full example):
var myAccordion = new Accordion($('accordion'), 'h3.toggler',
'div.element');
for(i = 0; i < myAccordion.togglers.length; i++)
{
myAccordion.togglers[i].addEvent(
'mouseover',
myAccordion.display.bind(myAccordion, i)
);
}
Will Mavis
http://www.sourcecoast.com/


