03-15-2005, 05:50 AM
|
#1
|
|
Member (10 bit)
Join Date: Jan 2001
Location: Birmingham, UK.
Posts: 553
|
JavaScript: Track Mouseover Movements
I have written a scrolling panel consisting of one main div and as many internal divs as required (these move within the main div to achieve the scrolling). I have two JavaScript methods that scroll the panel in opposite directions - scrollLeft() and scrollRight().
I would like to be able to know when a user moves the mouse pointer over the main div and then track if they move the mouse left or right and scroll in that direction accordingly. It's kind of like a drag scroll without the need to click the mouse button (as all the items within the scrolling panel will link off somewhere).
If anyone can point me in the right direction I would appreciate it.
DJ
|
|
|