1、文字普通移动的代码:
<marquee>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
2、文字滑动的代码:
<marquee behavior=slide>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
3、 预设移动的代码:
<marquee behavior=scroll>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
4、来回移动的代码:
<marquee behavior=alternate>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
5、文字向下移动的代码:
<marquee direction=down>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
6、文字向上移动的代码
<marquee direction=up>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
7、文字向右移动的代码:
<marquee direction=right>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
8、文字向左移动的代码:
<marquee direction=left>输入文字</marquee>
效果:
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
9、设定文字移动次数移动的代码:
<marquee loop=2>输入文字</marquee>
效果(移动2次):
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
10、设定文字移动宽度的代码:
<marquee width=180>输入文字</marquee>
效果:(宽度为180)
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
11、设定文字移动高度的代码:
<marquee height=30>输入文字</marquee>
效果:(高度为30)
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
12、设定文字移动背景颜色的代码(FF0000为颜色代码,从000000,到FFFFFF):
<marquee bgcolor=FF0000>输入文字</marquee>
效果:(背景颜色代码为#999966)
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
13、设定文字移动距离的代码:
<marquee scrollamount=30>输入文字</marquee>
效果:(距离为30)
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
14、设定文字移动时间的代码:
<marquee scrolldelay=300>输入文字</marquee>
效果:(时间为300)
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
15、文字上下移动的代码:
<MARQUEE bgcolor=#999966 style="WIDTH: 300px; HEIGHT: 300px" scrollAmount=3 scrollDelay=1 direction=up behavior=alternate width=60 height=300>输入文字</MARQUEE>
效果:(颜色代码:#999966 宽度:300px 高度:300px 距离:3 时间为1)
·~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
以上数据可根据需要自行调节

上一篇:【演示】博客添加FLASH的代码
下一篇:【演示】视频常用播放器(MTV)代码
相关链接:【原创】芷苑博客技巧汇总

|
评论