搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

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

  • 2 回覆
  • 40 有這個問題
  • 123 次檢視
  • 最近回覆由 willmath

more options

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 ?

被選擇的解決方法

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

從原來的回覆中察看解決方案 👍 23

所有回覆 (2)

more options

選擇的解決方法

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

由 mattlem 於 修改

more options

Thanks of lot, it works !