PDA

View Full Version : Accordion Content script with an 'onMouseOut' event



mickliddy
01-26-2008, 12:12 PM
1) Script Title:
Accordian Content Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm
3) Describe problem:
Im only just begining to learn javascript, and DHTML and Id like to make an onMouseOut event for the Accordian Content Script - so that instead of it only collapsing when clicked again, it will collapse when the users cursor leaves the DIV/Title for longer than X secounds. Can somebody help me with this? And would it be possible to detect that the mouse is no longer on the element while the mouse is on a different frame?

Another question I have(this attaches to the last) is if its possible to force the user to either click the title of that DIV, or click a different DIV - as it is originaly - or click another link in the same frame; but only if the user has checked a box inside the DIV(which auto un-checks when the DIV collapses again).

Thanks in advanced :)

kidtone
04-23-2008, 12:25 AM
Did you figure this out, I'm working on a project and need some help with it.

ddadmin
04-23-2008, 06:59 AM
There is a mod for getting the menu header to auto expand when the mouse rolls over them, but not hide onmouseout: http://www.dynamicdrive.com/forums/showthread.php?p=138526 The later is more complex as mentioned in that thread, and is probably only something I'll look at doing the next time the script is updated.