I want to create a Marquee that scrolls some news articles but when the user hovers over it I need it to pause and when the user hovers out of it (onMouseOut) I need to ti s
The marquee tag has an attribute called scrollamount
which controls how fast it goes. All we need to do is set the value to 0
when we hover in and set it back to 5
when we mouse out.
DEMO: http://jsfiddle.net/U9yFj/
$(function() {
$('marquee').mouseover(function() {
$(this).attr('scrollamount',0);
}).mouseout(function() {
$(this).attr('scrollamount',5);
});
});