您现在的位置: 学淘宝 >> 文章中心 >> 淘宝装修 >> 正文

教你制作移动的字幕来吸引你的客户!

作者:佚名    文章来源:本站原创    点击数:    更新时间:2007-9-26


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>

效果:

我只走 3 趟哦。

外观设置

背景色 <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>

效果:

我身高100 宽250

演示作品

大家好:
我的名字叫移动,英文叫Marquee
我的个性非常好动,24个小时都可以不时不停止
说真的 中X移动也不够我来
有什么不明白 回帖问我就可以

本演示的代码

<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

  • 上一篇文章:
  • 下一篇文章:
  •  

    相关文章

    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站地图 |
    Copyright © xuetaobao.com Inc. All rights reserved. 学淘宝 版权所有
    服务专线:(86)631-5804555 Email: 5804555@gmail.com