“marquee” function does not working

Asked By 10 points N/A Posted on -
qa-featured

I have created a scrolling news line using "marquee". When I hover mouse over scrolling text, the text is not stopping.

I want it stop when mouse is placed on scrolling line. What is the way to do it?

SHARE
Answered By 20 points N/A #114785

“marquee” function does not working

qa-featured

Hey Arlet Joson!

Obviously, if the text does not stop on mouse over the text then there must be some mistake in the code. If you want to stop the text on mouse over, then you should follow this code. This is the right code to stop the scrolling text on mouse over and text will start scrolling again on mouse out.

<html>

<body>
<marquee behavior="scroll" direction="left" onmouseover="this.stop();" onmouseout="this.start();">Go on… hover over me!</marquee>

</body>

</html>

I would like to recommend you a free website to learn HTML. You can visit. It's a free site and will be very beneficial for you.

Thanks

Related Questions