2014-02-23 45 views
0

當我將鼠標光標移動到正在移動的文本上時,出現問題。鼠標懸停時滾動字幕停止

我想停止對鼠標移動的文本..

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

Pervaiz 

</marquee> 
+0

選取框是非標準的,將不被支持前進。 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee – techfoobar

+0

請參閱http://jsfiddle.net/w6fdB/ – Prasanth

回答

1

真的,我會建議你不要在這個年齡段使用marquee。我們有很多選擇使用簡單的CSS或js或jQuery來實現它。所以要爲他們,但無論如何你的上述問題的解決方案將是本

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

Js Fiddle Demo

+0

感謝Sachin的建議。 –