具有鼠标悬停效果滚动公告栏
<marquee scrollAmount="2" scrollDelay="60"
onmouseover="this.stop()" onmouseout="this.start()"
direction="up" style="width:150px;height:100px; >
<a href="http://yqin.iteye.com">我的博客</a><br>
<a href="http://yqin.iteye.com">我的博客</a><br>
<a href="http://yqin.iteye.com">我的博客</a><br>
<a href="http://yqin.iteye.com">我的博客</a><br>
<a href="http://yqin.iteye.com">我的博客</a><br>
</marquee>
本例主要是marquee对象的一些方法和属性的应用:
behavior 设置或获取文本如何在字幕中滚动。
direction设置或获取文本滚动的方向。
loop 设置或获取字幕播放的次数。
scrollAmount 设置或获取介于每个字幕绘制序列之间的文本滚动像素数。
scrollDelay 设置或获取字幕滚动的速度。
start 开始滚动字幕。
stop 停止字幕的滚动。