Hover Over to Pause Marquee
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);
});
});
<marquee onmouseover="this.stop();" onmouseout="this.start();">
my text here
</marquee>
You're using wrong case: onMouseOver,onMouseOut
<marquee behavior="scroll" scrollamount="5" direction="left" onmouseover="this.setAttribute('scrollamount',0);" onmouseout="this.setAttribute('scrollamount',5);">
Your name, your address, your details scrolling through line
</marquee>
Hope this code will help someone who is use MARQUEE tag.
<marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();">
Go on... hover me (and hold the mouse over)!
</marquee>