加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

marquee完整的当鼠标经过停止

(2008-09-08 12:01:48)
标签:

文字滚动

it

分类: 技术文章
 

<Marquee direction=up onmouseover=this.stop() onmouseout=this.start() scrollamount=1 scrollDelay=4 width=150 Height=160><table border=0>
<td><a href="/Announce.asp?AnnounceID=26" title="2006-2007学年度第二学期网页设计实训(3-4周)讲座安排" target="_blank"> 2006-2007学年度第二学期网页设计实训(3-4周)讲座安排</a></td></tr>
</td>


</Marquee>

滚动字的代码

文字很快滚。
<marquee scrollamount=1>
文字很慢滚。
</marquee>



文字很慢滚。
<marquee onmouseover=this.stop() onmouseout=this.start() >
鼠标放上去停止滚动,移开继续滚动。
</marquee>



鼠标放上去停止滚动,移开继续滚动。
<marquee direction=left scrollamount=3>
文字向左滚。
</marquee>



文字向左滚。
<marquee direction=right scrollamount=3>
文字向右滚。
</marquee>



文字向右滚。
<marquee direction=up scrollamount=3>
文字向上滚。
</marquee>



文字向上滚。
<marquee direction=down scrollamount=3>
文字向下滚。
</marquee>



文字向下滚。
<marquee scrollamount=3 behavior=alternate>
文字来回滚。
</marquee>



文字来回滚。
<marquee scrolldelay=500 scrollamount=100>走一步,停一停!</marquee>

marquee:

     <marquee direction=up behavior=scroll loop=3 scrollamount=1 scrolldelay=10 align=top bgcolor=#ffffff height=300 width=30% hspace=20 vspace=10 onmouseover=this.stop() onmouseout=this.start()> 此处输入滚动内容 </marquee>

详解:

     direction表示滚动的方向,值可以是left,right,up,down,默认为left
     behavior表示滚动的方式,值可以是scroll(连续滚动)slide(滑动一次)alternate(来回滚动)
      loop表示循环的次数,值是正整数,默认为无限循环
     scrollamount表示运动速度,值是正整数,默认为6
     scrolldelay表示停顿时间,值是正整数,默认为0,单位似乎是毫秒
     align表示元素的垂直对齐方式,值可以是top,middle,bottom,默认为middle
      bgcolor表示运动区域的背景色,值是16进制的RGB颜色,默认为白色
     height、width表示运动区域的高度和宽度,值是正整数(单位是像素)或百分数,默认width=100% height为标签内元素的高度
    hspace、vspace表示元素到区域边界的水平距离和垂直距离,值是正整数,单位是像素。
    onmouseover=this.stop() onmouseout=this.start()表示当鼠标以上区域的时候滚动停止,当鼠标移开的时候又继续滚动。

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有