滚动图片特效代码
|
左右滚动代码格式: |
|
<marquee scrollamount=1 scrolldelay=3 valign=middle behavior="scroll"> |
|
(从下往上滚动) 代码格式 |
|
<marquee align=center direction=up scrollamount=1 scrolldelay=3 valign=middle behavior="scroll"> |
| 基本格式:<marquee scrollamount=1 SCROLLDELAY=1 border=0 direction=up scrolldelay=70 width=180 height=130 align=middle> 把图片的连接地址写在这里 </marquee> |
1.direction属性:决定文本的滚动方向,分为向左left和向右right,up和down默认状态向左。
<marquee direction=left>从右向左滚动</marquee>
<marquee direction=right>从左向右滚动</marquee>
2.behavior属性:指定文本的滚动方式,分为三种:
Scroll:从一端消失后,在另一端出现并继续滚动。
<marquee behavior=scroll>一圈一圈地滚动</marquee>
Slide:从一端滚动,接触到另一端后停止
<marquee behaviro=slide>只滚动一次就停止</marquee>
Alternate:从一端滚动到另一端后,反向滚动。
<marquee behavior=alternate>来回滚动</marquee>
direction=up(left、right、down) 这个属性可以更改,这样就可以实现上下左右了
| 代码如下: |
|
<DIV style="OVERFLOW: hidden; WIDTH: 100%"> <MARQUEE scrollAmount=1 scrollDelay=3 direction=up height=600 align="center" valign="middle"><IMG height=303 src="http://blog.163.com/photo/id0dKCI9eSwcKfq76nZ6qg==/1986931860600534382.jpg" width=230 border=0> <IMG height=303 src="http://blog.163.com/photo/pZqL6RNfPVm9qft77CBy6w==/1986931860600534397.jpg" width=230 border=0> <IMG height=303 src="http://blog.163.com/photo/8K6kGsWPDw9MsABKAHNE8g==/1986931860600534400.jpg" width=230 border=0></MARQUEE></DIV> |
|