X
Tap here to go to the mobile version of the site.

Support Forum

Html marquee : stop() and start() work on firefox 26 but not on 27

Posted

this html/javascript line works on firefox 26 but not on firefox 27

<marquee onMouseOver='this.stop();' OnMouseOut='this.start();'>Hello</marquee>

Why ?

this html/javascript line works on firefox 26 but not on firefox 27 <marquee onMouseOver='this.stop();' OnMouseOut='this.start();'>Hello</marquee> Why ?

Chosen solution

Hello willmath,

Thanks for posting on the Mozilla Support forums. The code you posted didn't work in my version of Firefox 27 either.

Luckily I found a solution solution:

<marquee onMouseOver="this.setAttribute('scrollamount', 0, 0);" OnMouseOut="this.setAttribute('scrollamount', 6, 0);">Hello</marquee>

This works in Firefox 27.0.1 which is the version I tested it on.

It may be useful for you to read the following on the marquee element. As it is a non-standard element, support over each browser will vary and the solution I provided may not work on other browsers.

Mattlem

Read this answer in context 23

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.2 r202
  • This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.
  • DivX Web Player version 1.4.0.233
  • The Totem 3.0.1 plugin handles video and audio streams.

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:27.0) Gecko/20100101 Firefox/27.0

More Information

mattlem 5 solutions 25 answers

Chosen Solution

Hello willmath,

Thanks for posting on the Mozilla Support forums. The code you posted didn't work in my version of Firefox 27 either.

Luckily I found a solution solution:

<marquee onMouseOver="this.setAttribute('scrollamount', 0, 0);" OnMouseOut="this.setAttribute('scrollamount', 6, 0);">Hello</marquee>

This works in Firefox 27.0.1 which is the version I tested it on.

It may be useful for you to read the following on the marquee element. As it is a non-standard element, support over each browser will vary and the solution I provided may not work on other browsers.

Mattlem

Hello willmath, Thanks for posting on the Mozilla Support forums. The code you posted didn't work in my version of Firefox 27 either. Luckily I found a [http://www.dynamicdrive.com/forums/showthread.php?13233-how-to-stop-marquee-on-mouseover&s=40e8f3a9b815516b85bd4588b7f92a2c&p=53875#post53875 solution] solution: '''<marquee onMouseOver="this.setAttribute('scrollamount', 0, 0);" OnMouseOut="this.setAttribute('scrollamount', 6, 0);">Hello</marquee> ''' This works in Firefox 27.0.1 which is the version I tested it on. It may be useful for you to read the following on the [https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee marquee element]. As it is a non-standard element, support over each browser will vary and the solution I provided may not work on other browsers. Mattlem

Modified by mattlem

Helpful Reply

Thanks of lot, it works !

Thanks of lot, it works !