很多朋友喜歡做圖片移動(dòng)的帖,在這兒再貼一遍代碼,和大家分享!
一、向左移動(dòng)
<marquee><img src=http://myok.blogchina.com/inc/myoklogo.gif><br>從右向左移動(dòng)</marquee>
示例:
二、向右移動(dòng)
<marquee direction=right><img src=http://myok.blogchina.com/inc/myoklogo.gif width=90 height=30><br><font color=0000ff size=3 face=宋體><b>從左向右移動(dòng)</b></font></marquee>
示例:
三、向上移動(dòng)
<marquee direction=up scrollamount=5 src=http://myok.blogchina.com/inc/myoklogo.gif width=90 height=30></center></marquee>
示例:
四、向下移動(dòng)
<marquee direction=down scrollamount=5><center><font color=0000ff size=5 face=華文行楷><b>向下移動(dòng)</b></font><br><img src=http://myok.blogchina.com/inc/myoklogo.gif width=90 height=30></marquee>
示例:
五、來回移動(dòng)
<marquee width=100% behavior=alternate scrollamount=10><img src=http://myok.blogchina.com/inc/myoklogo.gif width=90 height=30><br><font color=0000ff size=5 face=華文行楷><b>來回移動(dòng)</b></font></marquee>
示例:
六、中間向兩邊移動(dòng):
<center><br><marquee width=220 height=50><img src=http://myok.blogchina.com/inc/myoklogo.gif width=90 height=30><font face=華文彩云 color=#0000ff size=5><br>中間向兩邊移動(dòng)</font></marquee><marquee direction=right width=220 height=50><img src=http://myok.blogchina.com/inc/myoklogo.gif width=90 height=30><font face=華文彩云 color=#0000ff size=5><br>中間向兩邊移動(dòng)<br></marquee></font></center>
示例:
七、中間上下移動(dòng):
<marquee direction=up scrollamount=3 src=http://myok.blogchina.com/inc/myoklogo.gif width=90></marquee></center><marquee direction=down scrollamount=3><center><div style="width:400;filter:flipv;"><img src="http://myok.blogchina.com/inc/myoklogo.gif" width=90></div></center></marquee>
示例: