怎么让滚动的文字在鼠标经过的时候停下来?
下面是滚动的通告,可是它不会在鼠标经过的时候停下来,要怎样改才能做到呢?谢谢大家
<DIV style= "COLOR: #000000; HEIGHT: 10px "> <FONT size=2>
<MARQUEE style= "WIDTH: 300px; HEIGHT: 80px " scrollAmount=1 scrollDelay=1 direction=up width=300 height=80>
<P align=left>
<table width= "200 " border= "0 " align= "center ">
<tr>
<td> 滚动的文字 </td>
</tr>
</table>
</P> </FONT> </MARQUEE> </FONT> </DIV>
[解决办法]
onmouseover = "this.stop() "
onmouseout = "this.start() ";
[解决办法]
MARQUEE加上:id=scrollArea
onmouseover=scrollArea.stop() onmouseout=scrollArea.start()
[解决办法]
onmouseover事件
[解决办法]
<MARQUEE style= "WIDTH: 300px; HEIGHT: 80px " onmouseover = "this.stop() "
onmouseout = "this.start() " scrollAmount=1 scrollDelay=1 direction=up width=300 height=80>
[解决办法]
<MARQUEE style= "WIDTH: 300px; HEIGHT: 80px " scrollAmount=1 scrollDelay=1 direction=up width=300 onmouseover=this.stop() onmouseout=this.start() height=80>
[解决办法]
onmouseover= "stop() " onmouseout= "start() "
[解决办法]
<MARQUEE style= "WIDTH: 300px; HEIGHT: 80px " scrollAmount=1 scrollDelay=1 direction=up width=300 onmouseover=this.stop() onmouseout=this.start() height=80>
[解决办法]
<TABLE width= "190 " height= "100 " border=0 cellPadding=0 cellSpacing=0 class=boder2>
<TBODY>
<TR>
<TD width= "181 " height=27 class=title2 bgcolor= "#6F9DC4 "> <IMG height=12 hspace=10 src= "../Images/arrow2.gif " width=14 align=absMiddle> 网站公告 </TD>
</TR>
<TR>
<TD vAlign=top height=100 width= "181 "> <DIV class=content>
<MARQUEE id=scrollarea onmouseover=this.stop();
onmouseout=this.start(); scrollAmount=2 scrollDelay=200 direction=up
width=180
height=100>
本站所有文章或资料除注明为本站自创编辑整理外,均为各方收集或网友推荐所得。其中摘录的内容以共享、研究为目的,不存在任何商业考虑。 <BR>
目前网站上有些文章未注明作者或出处,甚至标注错误,此类情况出现并非不尊重作者及出处网站,而是因为有些资料来源的不规范。如果有了解作者或出处的原作者或网友,请告知,本网站将立即更正注明,并公开向作者或出处单位道歉。 被摘录的对象如有任何异议,请与本站联系,联系方式见页尾,本站确认后将立即撤下。谢谢您的支持与理解! <BR>
</MARQUEE>
</DIV> </TD>
</TR>
</TBODY>
</TABLE>
[解决办法]
<marquee direction= "left " behavior= "scroll " loop= "-1 " onMouseOver= "this.stop() " onMouseOut= "this.start() " scrolldelay= "20 " scrollamount= "3 " width= "98% "> </marquee>
[解决办法]
marquee的缺点就在于它不是连续滚动,比较难看。