发现
论坛上有好多人问滚动文字
一一解答麻烦,发一独立帖给大家参考:(希望老大能加点分)
一.从一侧进入,另一侧出的滚动文字:</style>
<DIV align=center>
<div id="Layer1" style="position:absolute; width:10px; height:20px; z-index:1; left: 100px; top: 118px;"></div>
<marquee scrollAmount=2 width=650>
<font color="#FF0000"> 欢迎光临 [我爱标准网] 本站域名:
www.5ibzw.com.cn</font>
</marquee></DIV>
效果:
www.5ibzw.com.cn二.给滚动文字加上链接</style>
<DIV align=center>
<div id="Layer1" style="position:absolute; width:10px; height:20px; z-index:1; left: 100px; top: 118px;"></div>
<marquee scrollAmount=2 width=650><a href=http://www.5ibzw.com.cn>
<font color="#FF0000"> 欢迎光临 [我爱标准网] 本站域名:
www.5ibzw.com.cn</font>
</a>
</marquee></DIV>
效果:
www.5ibzw.com.cn三.如何制作当鼠标停留在文字上,文字停止滚动代码如下:
</style>
<DIV align=center>
<div id="Layer1" style="position:absolute; width:10px; height:20px; z-index:1; left: 100px; top: 118px;"></div>
<marquee scrollAmount=2 width=650 onmouseover=stop() onmouseout=start()><a href=http://www.5ibzw.com.cn>
<font color="#FF0000"> 欢迎光临 [我爱标准网] 本站域名:
www.5ibzw.com.cn</font>
</a>
</marquee></DIV>
效果:
www.5ibzw.com.cn四.滚动图片</style>
<DIV align=center>
<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2; left: 135px; top: 345px;">
<marquee scrollAmount=2 width=300><IMG src="http://u.uu1001.com/uu/uu_0707_1/5ibzw/79_70_2b6f46b5eb6e451.gif" border=0>
</marquee>
</div>
效果:
www.5ibzw.com.cn五.滚动文字在区间内来回摆动!</style>
<DIV align=center>
<div id="Layer1" style="position:absolute; width:10px; height:20px; z-index:1; left: 296px; top: 64px;">
<marquee scrollAmount=4 width=500 behavior=alternate><a href=http://www.5ibzw.com>
<font color="#FF0000"> 欢迎光临 [我爱标准网] 本站域名:
www.5ibzw.com.cn</font>
</a>
</marquee></DIV>
效果:
www.5ibzw.com.cn[ 此贴被kouxiangde在2007-12-17 23:05重新编辑 ]