Pervaiz Ahmed
Pervaiz Ahmed

Reputation: 1

Marquee stops on mouseover

I have a problem when I move mouse cursor on moving text it is being stopped.

I want to stop moving the text on mouse over..

<marquee behavior="scroll" direction="left" onmouseover="this.stop();">

Pervaiz

</marquee>

Upvotes: 0

Views: 5236

Answers (1)

Sachin
Sachin

Reputation: 40990

Really I would recommend you to not to use the marquee in this age. We have a lot of option to achieve it using simple css or js or jquery. So go for them but anyway the solution of your above problem would be this

<marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseleave="this.start();">

Js Fiddle Demo

Upvotes: 2

Related Questions