字幕滚动

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>公告滚动JS代码</title>
</head>
<body>
<div align="center">
<table border="1" width="206" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="90" id="table1">
<tr>
<td valign="top">
<MARQUEE οnmοuseοver=this.stop() οnmοuseοut=this.start() scrollAmount=1 scrollDelay=100 direction=left height="99%">
<TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
<TBODY>
<TR>
<TD vAlign=top height=120>
<P style="LINE-HEIGHT: 150%;font-size:9pt"><FONT color=#000033>·<A href="#" >欢迎您光临!</A></FONT><BR><FONT color=#000033>·<A
href="#">更多很棒的源代码...</A></FONT><BR><FONT color=#000033>·<A
href="#">一个学习型的源码网站... </A></FONT><BR><FONT color=#000033>·<A href="#">如果有建议请提交给我们... </A></FONT><BR><FONT color=#000033>·<A href="#">非常感谢大家经常光顾</A></FONT><BR><FONT color=#000033>·<A href="#">再次感谢大家,再见</A></FONT>
</TD>
</TR>
</TBODY>
</TABLE>
</MARQUEE>
</td>
</tr>
</table>
</div>
</body>
</html>

 

scrollAmount:表示速度,值越大速度就越快,默认6,建议1-3;

width,height:设置滚动区域大小,特别是垂直滚动的时候一定要设置height;

direction:滚动的方向,up down left right;

scrollDelay:用来控制速度,值越大,速度越慢,默认90,通常不需要设置。

behavior:用来控制属性,默认为循环滚动,alternate交替滚动,slide幻灯片滚动,滚动一次,就停止滚动

 

转载于:https://www.cnblogs.com/daodaoweb/articles/3373678.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值