PDA

View Full Version : DD Drop Down Panel On Mouse Over



Clarkie
11-17-2008, 06:33 PM
1) DD Drop Down Panel

2) http://www.dynamicdrive.com/dynamicindex17/dddropdownpanel.htm

3) Describe problem: How can I make this activate - On Mouse Over

Thanks

ddadmin
11-17-2008, 08:37 PM
You can try changing the code in red from the original "click" to "mouseover" inside the .js file, which provides a basic version of this behavior:


ddpanel.addEvent(tdiv, function(e){ //assign click behavior when toggle DIV tab is clicked on
if (setting.animate.enabled)
thispanel.togglepanelplus()
else
thispanel.togglepanel()
if (e.preventDefault) e.preventDefault()
return false
}, "mouseover")

The panel won't collapse onMouseout of the panel, however. That's a lot more complex to do unfortunately based on the current code.

Clarkie
11-18-2008, 09:32 AM
Many thanks