Scrolling with scroll over button

techgeek1499

New Member
Messages
18
Reaction score
0
Points
0
I have been recently designing a website and I have the lovely HTML Marquee tag... But anyways I will have images scrolling, but I will have an up and down arrow but I want it so when you scroll over the up arrow the pictures scroll up, but not the arrow and the same for the down arrow but images scroll down. I know this be done using JS but I am not quite sure how...? Please help.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Overview: attach (IE way) a mouseOver event listener on each button that starts an interval. The interval function increases (or decreases, to scroll up) the element's scrollTop property. Attach another event listener to each button for the mouseOut event that clears the interval. Using a library like jQuery, Scriptaculous or Flow can make everything easier, from dealing with events to animation (specifically, scrolling).
 
Top