制作会移动的文字

来源:互联网 发布:涤星洗衣设备如何编程 编辑:程序博客网 时间:2024/04/30 03:58
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
基本语法:
<marquee>需要移动的文字</marquee>
<direction=#>

  1.方向 #=left, right
例:<marquee direction=left>从右向左移动</marquee>>
<marquee direction=right>从左向右移动</marquee>>


  2.次数 <bihavior=#> #=scroll, slide, alternate
例:<marquee behavior=scroll>一圈一圈的绕着移动</marquee>>
<marquee behavior=slide>只移动一次就停</marquee>>
<marquee behavior=alternate>来回移动,不停</marquee>>


  3.循环 <loop=#> # =次数,若未指定则循环不止(infinite)
例:<marquee loop=3 width=50% behavior=scroll>只走 3 趟</marquee>


  4.速度加快 <scrollamount=#>
例:<marquee scrollamount=20>移动速度加快</marquee>>


  5.速度减慢 <scrolldelay=#>
例:<marquee scrolldelay=500 scrollamount=100>移动速度减慢</marquee>


  6.底色 <bgcolor=#>
#=rrggbb 16进制数码,或者是下列预定义色彩:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime, 
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua 
例:<marquee bgcolor=red>是红色的</marquee>


  7.面积 <height=# width=#> 
  例:<marquee height=80 bgcolor=red>面积变大了</marquee><script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击