marquee 基本语法

例子(代码):
<marquee>太神奇了,我居然会移动的....</marquee>
效果:
文字移动属性
方向 <direction=#> #=left(向左), right(向右),up(向上),down(向下)
例子(代码):
<marqueedirection=left>我要向左走!</marquee>
<marqueedirection=right>我要向右走!</marquee>
<marqueedirection=up>我要向上走!</marquee>
<marqueedirection=down>我要向下走!</marquee>
效果:
移动速度
<scrollamount=#> #=1(最慢) #=50(最快)
例子(代码):
<marquee scrollamount=1>我老了,走得很慢!</marquee>
<marquee scrollamount=50>我很年轻人,当然比上面的老人家快得多!</marquee>
效果:
移动方式
方式 <bihavior=#> #=scroll, slide, alternate
例子(代码):
<marquee behavior=scroll>我一圈一圈不停的走 </marquee>
<marquee behavior=slide>我只走一次就歇了!</marquee>
<marquee behavior=alternate>我还会来回走耶!</marquee>
效果:
循环次数
循环 <loop=#> #=次数,若未指定则循环不会停止 必须要和“behavior=值”一起用
例子(代码):
<marquee loop=3 behavior=alternate>我只走 3 趟哦。</marquee>
效果:
外观设置
背景色 <bgcolor=#> #="16 进制色" 或 "预定义色彩"
16 进制色 例如:#ff6600 #000000 #00FF00
预定义色彩 Black(黑), Olive(橄榄色), Teal, Red(红), Blue(蓝), Maroon(栗色), Gray(灰色), White(白), Green(绿), Purple(紫), Silver(银), Yellow(黄) 等
例子(代码):
<marquee bgcolor=red >我的背景是红色的</marquee>
效果:
显示面积
<height=# width=#> #=数值 height是高的意思 width是宽的意思
例子(代码):
<marquee height=100 width=250 direction=up>我身高100 宽250</marquee>
效果:
演示作品
|
|
|
|
|
本演示的代码
<table width="500" height="300" border="0" align="center" cellpadding="0" cellspacing="0" style="background:url(http://atans.blogbus.com/files/1164515542.gif) no-repeat;">
<tr>
<td valign="top">
<div style="margin:95px 0 0 40px;width:350px;height:160px;padding:5px;">
<marquee direction=up scrollamount=2 style="color:#f60;font-size:16px;line-height:1.5">
大家好:<br />
我的名字叫移动,英文叫Marquee <br />
我的个性非常好动,24个小时都可以不时不停止<br />
说真的 中X移动也不够我来<br />
有什么不明白 回帖问我就可以
</marquee>
</div>
</td>
</tr>
</table>
使用方法





最后附言
本小子第一次发贴
这个用了我一个上午
好像很长篇,慢慢看.不懂就回帖问我.
希望大家支持偶!
祝:
各位卖家生意兴隆 888