版权信息©2008-2011 All Rights Reserved |
图片各种移动代码汇编
示例:
二、向右移动
<marquee direction=right><img src=http://img.blog.163.com/photo/ns5ahdLyZUpK4ksWeD09Ug==/2258836688103407738.jpg width=90 height=30><br><font color=0000ff size=3 face=宋体><b>从左向右移动</b></font></marquee>
示例:
三、向上移动
<MARQUEE scrollAmount=2 direction=up>
<CENTER><FONT face=华文行楷 color=#0000ff size=5><B>向上移动</B></FONT><BR><IMG style="WIDTH: 162px; HEIGHT: 180px" height=30 src="http://img.blog.163.com/photo/3V8c_xuTTqR-ZzwWWt9dCg==/2258836688103407745.jpg " width=90></CENTER></MARQUEE>
示例:
四、向下移动
<marquee direction=down scrollamount=5><center><font color=0000ff size=5 face=华文行楷><b>向下移动</b></font><br><img src=http://img.blog.163.com/photo/DktQ64JjAXx7kng3B91cSA==/5711127277459904492.jpg width=90 height=30></marquee>
示例:
五、来回移动
<marquee width=100% behavior=alternate scrollamount=10><img src=http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg width=90 height=30><br><font color=0000ff size=5 face=华文行楷><b>来回移动</b></font></marquee>
示例:
六、上下起伏 示例:
<marquee direction=left><marquee behavior=alternate direction=up height=100><img src=http://img.blog.163.com/photo/S-Oz241bCy1yaVJnqZGDUg==/5711127277459904528.jpg><img src=http://img.blog.163.com/photo/S-Oz241bCy1yaVJnqZGDUg==/5711127277459904528.jpg><font color=0000ff size=3 face=华文行楷></b></font></marquee></marquee>
七、中间向两边移动:
<center><br><marquee width=220 height=50><img src=http://img.blog.163.com/photo/Je9V4c8lO5hZMPjihSsJBA==/924082348541571453.jpg width=90 height=30><font face=华文彩云 color=#0000ff size=5><br>中间向两边移动</font></marquee><marquee direction=right width=220 height=50><img src=http://img.blog.163.com/photo/Je9V4c8lO5hZMPjihSsJBA==/924082348541571453.jpg width=90 height=30><font face=华文彩云 color=#0000ff size=5><br>中间向两边移动<br></marquee></font></center>
示例:
八、中间相对上下移动:
代码:
<marquee direction=up onmouseover=this.stop() scrollamount=3 onmouseout=this.start><center><img src=http://img.blog.163.com/photo/ne16eI4nG3TP1UI-2HaQwA==/924082348541571472.jpg width=90></marquee></center><marquee direction=down scrollamount=3><center><div style="width:400;filter:flipv;"><img src="http://img.blog.163.com/photo/ne16eI4nG3TP1UI-2HaQwA==/924082348541571472.jpg" width=90></div></center></marquee>
示例:
screen.width-333)this.width=screen.width-333&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}">
screen.width-333)this.width=screen.width-333&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}&13;&10;}">
.几种图片移动移动代码:
效果1:
代码:效果1
<MARQUEE scrollAmount=3 direction=left behavior=slide width=330 height=371><MARQUEE scrollAmount=3 direction=right behavior=slide width=330 height=371><DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></DIV></MARQUEE></MARQUEE>
效果2
代码:效果2
<MARQUEE scrollAmount=3 direction=down height=371><MARQUEE scrollAmount=3 direction=up height=371> <DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></DIV></MARQUEE></MARQUEE>
效果3:
代码:效果3
<MARQUEE scrollAmount=3 direction=up height=371><MARQUEE scrollAmount=3 direction=down height=371><DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></DIV></MARQUEE></MARQUEE>
效果四:
代码:效果4
<MARQUEE scrollAmount=3 direction=right width=330 height=371><MARQUEE scrollAmount=3 direction=left width=330 height=371> <DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></DIV></MARQUEE></MARQUEE>
效果五:
代码:效果5
<MARQUEE scrollAmount=3 direction=left width=330 height=371><MARQUEE scrollAmount=3 direction=right width=330 height=371> <DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></DIV></MARQUEE></MARQUEE>
效果六:
代码:效果6
<MARQUEE scrollAmount=2 direction=up behavior=alternate height=471><MARQUEE scrollAmount=2 direction=up height=371> <DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></DIV></MARQUEE></MARQUEE>
效果七:
代码:效果7
<DIV align=center> <MARQUEE scrollAmount=2 behavior=alternate width=630 height=471><MARQUEE scrollAmount=2 direction=up width=330 height=471><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></MARQUEE></MARQUEE></DIV>
效果八:
代码:效果8
<MARQUEE scrollAmount=3 behavior=alternate width="100%"><MARQUEE scrollAmount=3 width="98%"><DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"></DIV></MARQUEE></MARQUEE>
效果9:
代码:效果9
<MARQUEE scrollAmount=2 direction=down><DIV align=center><IMG src="http://wrxpt.go1.icpcn.com/texiaodaima/02/100.gif"><br><br><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br></DIV> </MARQUEE> <MARQUEE style=" FILTER: flipv(enabled=1)" scrollAmount=2 direction=down> <DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br></DIV> </MARQUEE>
效果10:
代码:效果10
<DIV align=center> <MARQUEE scrollAmount=2 direction=up><DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br></DIV></MARQUEE> <MARQUEE style="FILTER: flipv(enabled=1)" scrollAmount=2 direction=up> <DIV align=center><IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br> <IMG src="http://img.blog.163.com/photo/LJfIXa5t7pDSYiF3ZulpoA==/5711127277459904518.jpg"><br><br></DIV></MARQUEE>
图片对开移动:
|
|
|
|
<TABLE cellSpacing=0 cellPadding=0 width=500 align=center border=0> <TBODY> <TR> <TD align=middle> <MARQUEE scrollAmount=1 scrollDelay=100 direction=right width=120><IMG src="
http://img.blog.163.com/photo/DktQ64JjAXx7kng3B91cSA==/5711127277459904492.jpg"></MARQUEE></TD> <TD align=middle> <MARQUEE scrollAmount=1 scrollDelay=100 width=120><IMG src="
http://img.blog.163.com/photo/DktQ64JjAXx7kng3B91cSA==/5711127277459904492.jpg"></MARQUEE></TD> <TD align=middle> <MARQUEE scrollAmount=1 scrollDelay=100 direction=right width=120><IMG src="
http://img.blog.163.com/photo/DktQ64JjAXx7kng3B91cSA==/5711127277459904492.jpg"></MARQUEE></TD> <TD align=middle> <MARQUEE scrollAmount=1 scrollDelay=100 width=120><IMG src="
http://img.blog.163.com/photo/DktQ64JjAXx7kng3B91cSA==/5711127277459904492.jpg"></MARQUEE></TD></TR></TBODY></TABLE>
注: 各参数详解:
a)scrollAmount。它表示速度,值越大速度越快。如果没有它,默认为6,建议设为1~3比较好。
b)width和height,表示滚动区域的大小,width是宽度,height是高度。特别是在做垂直滚动的时候,一定要设height的值。
c)direction。表示滚动的方向,默认为从右向左:←←←。可选的值有right、down、up。滚动方向分别为:right表示→→→,up表示↑,down表示↓。
d)scrollDelay,这也是用来控制速度的,默认为90,值越大,速度越慢。通常scrollDelay是不需要设置的。
e)behavior。用它来控制属性,默认为循环滚动,可选的值有alternate(交替滚动)、slide(幻灯片效果,指的是滚动一次,然后停止滚动)
本日志来源:亮剑博客
版权信息©2008-2011 All Rights Reserved |