ITeye博客

具有鼠标悬停效果滚动公告栏

yqin · 2010-05-26 10:43 · java · Web前端 · UP · 公告 · Markdown

<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 停止字幕的滚动。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。