淘鹊桥
2022-07-22 09:42:16 阅读:99498
我开网店很久了,但是我对网店装修一直是菜鸟。就随便去论坛看了看,觉得这个帖子不错,我和大家分享一下!网店装修滚动文字图片的代码。
1、方向 <direction=#> #=left, right,up,down
如代码:
<marquee direction=left>文字从右向左移动!</marquee>
<marquee direction=right>文字从左向右移动!</marquee>
<marquee direction=up>文字从下向上移动!</marquee>
<marquee direction=down>文字从上向下移动!</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、对齐方式(Align) <align=#> #=top, middle, bottom
如:<font size=6>
<marquee align=# width=400>啦啦啦,我会移动耶!</marquee>
</font>
7、底色 <bgcolor=#>
#=rrggbb 16 进制数码,或者是下列预定义色彩:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua
如:
<marquee bgcolor="#006699">设定活动字幕的背景颜色 bgcolor="#006699"</marquee>
8、
下面这两个事件经常用到:
该区域时停止滚动
代码如下:
<marquee > is.start()" :用来设置鼠标移出该区域时继续滚动 :用来设置鼠标移入该区域时停止滚动</marquee>
9、
设定活动字幕的宽度
代码如下:
<marquee width="500" bgcolor="#CCCCCC">设定活动字幕的宽度</marquee>