如何停止鼠标悬停以及如何减慢选框的速度 [英] how to stop marquee on mouse over and how to slow speed of marquee

查看:118
本文介绍了如何停止鼠标悬停以及如何减慢选框的速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何停止鼠标上的选框以及如何减慢选框的速度

请帮助



谢谢

解决方案

Scrollamount属性为您提供每帧像素的滚动速度

和Scrolldelay属性定义帧之间的毫秒数时间



您应该能够在运行时在javascript中设置此属性


使用scrolldelay =1000来控制速度并停止试试这个

 <   marquee     onmouseover   =  this.setAttribute ('scrollamount',0,0);    onmouseout   =  this.setAttribute('scroll金额',6,0); >  
您的文字在这里
< / marquee >







 onMouseDown =   document.all.test.start() 
OR
onMouseOut = document.all.test.stop()





 <   marquee     id   = 测试   行为  = 滚动    direction   =  up < span class =code-attribute>   height   =  200    scrolldelay   =   100    scrollamount   =  2    onMouseOver   =  document.all.test.stop()    onMouseOut   =  document.all.test.start() >  

Th是我的测试

< / marquee >



请参阅此链接了解其属性

http://anshulbajpai.blogspot.com/2011/05/marquee-property.html [ ^ ]


加快选框,降低值of scrollamount。

 <   marquee     scrollamount   =  3    onmouseover   =  stop();      onmouseout   =  start(); > 这是字幕标记<   / marquee  >  


how to stop marquee on mouse over and how to slow speed of marquee
please help

thanks

解决方案

The Scrollamount attribute gives you the scroll speed in pixels per frame
and the Scrolldelay attribute defines time in miliseconds between frames

You should be able to set this attributes in javascript on runtime


Use scrolldelay="1000" to control the speed and for stopping try this

<marquee onmouseover="this.setAttribute('scrollamount', 0, 0);" onmouseout="this.setAttribute('scrollamount', 6, 0);">
your text here
</marquee>



or

onMouseDown="document.all.test.start()"
OR
onMouseOut="document.all.test.stop()"



<marquee id="test" behavior="scroll" direction="up" height="200" scrolldelay="100" scrollamount="2" onMouseOver="document.all.test.stop()" onMouseOut="document.all.test.start()">

This is my test

                </marquee>


Refer this link for its properties
http://anshulbajpai.blogspot.com/2011/05/marquee-property.html[^]


To speed down marquee, down value of scrollamount.

<marquee scrollamount="3" onmouseover="stop();"  onmouseout="start();">This is marquee tag</marquee>


这篇关于如何停止鼠标悬停以及如何减慢选框的速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆