图片移动代码大全
代码
从右向左移动:
图片向上移动:
<MARQUEE style="WIDTH: 300px; HEIGHT: 180px" scrollAmount=2 direction=up>
<P align=center><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></P></MARQUEE></CENTER>
<MARQUEE style="WIDTH: 300px; HEIGHT: 180px" scrollAmount=2 direction=down>
<P align=center><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></P></MARQUEE></CENTER>
<P align=center>
<MARQUEE style="WIDTH: 500px; HEIGHT: 120px" scrollAmount=4 behavior=alternate><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></MARQUEE></P>
<MARQUEE scrollAmount=2 scrollDelay=30 direction=left width="100%" height="128">
<A href="http://blog.163.com/ciq080416nfk@126/" target=_blank><IMG height=128 src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_2.gif"
width=128 border=0></A>
<A><IMG height=128 src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif
" width=128 border=0></A>
<A><IMG height=128 src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_3.gif" width=128 border=0></A>
</MARQUEE></DIV>
<MARQUEE style="WIDTH: 150px; HEIGHT: 210px" scrollAmount=4 direction=up behavior=alternate><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></MARQUEE></P>
<MARQUEE style="WIDTH: 700px; HEIGHT: 200px" scrollAmount=2 direction=up behavior=alternate>
<MARQUEE direction=right><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></MARQUEE></MARQUEE>
(二)
<marquee behavior=alternate direction=up height=200><img src=http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_4.jpg width=100 height=100><img src=http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_5.jpg width=100 height=100></marquee></marquee>
代码:
<MARQUEE style="WIDTH: 700px; HEIGHT: 180px" scrollAmount=2 direction=down behavior=alternate>
<MARQUEE scrollAmount=2 direction=right behavior=alternate><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></MARQUEE></MARQUEE>
图片波浪式来回移动(二):
<MARQUEE scrollAmount=2 behavior=alternate width=630 height=200>
<MARQUEE scrollAmount=2 direction=up width=195 height=192><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></MARQUEE></DIV>
图片由中间向两边移动:
<P align=center>
<MARQUEE style="WIDTH: 300px; HEIGHT: 150px" scrollAmount=2><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></MARQUEE>
<MARQUEE style="WIDTH: 300px; HEIGHT: 150px" scrollAmount=2 direction=right><IMG src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></MARQUEE></P>
--> |
<TBODY>
<TR>
<TD width=300>
<MARQUEE scrollAmount=1><IMG height=150 src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif" width=150 border=0></MARQUEE></TD>
<TD width=300>
<MARQUEE scrollAmount=1 direction=right><IMG style="FILTER: fliph" height=150 src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif" width=150 border=0></MARQUEE>
<MARQUEE style="WIDTH: 300px; HEIGHT: 180px" scrollAmount=2 direction=down>
<P align=center><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></P></MARQUEE></CENTER>
<CENTER>
<MARQUEE style="WIDTH: 300px; HEIGHT: 180px" scrollAmount=2 direction=up>
<P align=center><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif "></P></MARQUEE></CENTER>
<DIV align=center><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR></DIV></MARQUEE>
<MARQUEE style="FILTER: flipv(enabled=1)" scrollAmount=2 direction=down>
<DIV align=center><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR></DIV></MARQUEE>
<MARQUEE style="WIDTH: 565px; HEIGHT: 200px" direction=up scrollAmount=2>
<DIV align=center><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR></DIV></MARQUEE>
<MARQUEE style="FILTER: flipv(enabled=1); WIDTH: 590px; HEIGHT: 163px" direction=up scrollAmount=2>
<DIV align=center><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"><BR><BR></DIV></MARQUEE></DIV>
<MARQUEE width=150 scrollAmount=5><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></MARQUEE>
<P> </P>
图片从右往左移动(渐隐):
<MARQUEE style="WIDTH: 200px; HEIGHT: 150px" direction=right scrollAmount=5><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></MARQUEE><BR>
<MARQUEE scrollAmount=3 direction=down width=180 height=200>
<MARQUEE scrollAmount=3 direction=up height=180><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></MARQUEE></P>
<MARQUEE scrollAmount=3 direction=up behavior=alternate width=180 height=200>
<MARQUEE scrollAmount=3 direction=up height=150><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></MARQUEE></P>
代码:
<MARQUEE scrollAmount=3 behavior=alternate width=600 height=300>
<MARQUEE scrollAmount=3 direction=up width=150 height=300><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></MARQUEE></P>
代码:
<MARQUEE scrollAmount=3 behavior=alternate width=600>
<MARQUEE scrollAmount=3 behavior=alternate width=200><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></MARQUEE></P>
<MARQUEE style="WIDTH: 300px; HEIGHT: 250px" scrollAmount=2 direction=up>
<P align=center><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_2.gif"> <BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"> <BR><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_3.gif"> </P></MARQUEE></CENTER>
<TABLE width=400 align=center>
<TBODY>
<TR>
<TD align=middle width=100>
<MARQUEE scrollAmount=1 direction=right><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_6.jpg"></MARQUEE></TD>
<TD align=middle width=100>
<MARQUEE scrollAmount=1><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_6.jpg"></MARQUEE></TD>
<TD align=middle width=100>
<MARQUEE scrollAmount=1 direction=right><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_6.jpg"></MARQUEE></TD>
<TD align=middle width=100>
<MARQUEE scrollAmount=1><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_6.jpg"></MARQUEE></TD></TR></TBODY></TABLE>
--> |
<TBODY>
<TR>
<TD align=middle>
<MARQUEE scrollAmount=1 scrollDelay=100 direction=right width=151><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></TD>
<TD align=middle>
<MARQUEE scrollAmount=1 scrollDelay=100 width=151><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></TD>
<TD align=middle>
<MARQUEE scrollAmount=1 scrollDelay=100 direction=right width=151><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></TD>
<TD align=middle>
<MARQUEE scrollAmount=1 scrollDelay=100 width=151><IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_1.gif"></MARQUEE></TD></TR></TBODY></TABLE>
图片展开和收起(一):
代码:
<MARQUEE scrollAmount=3 direction=down height=228>
<MARQUEE scrollAmount=3 direction=up height=228><IMG style="DISPLAY: block; TEXT-ALIGN: center" src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_7.gif"></MARQUEE></MARQUEE>
图片展开和收起(二):
<MARQUEE scrollAmount=3 width=428 height=228>
<MARQUEE scrollAmount=3 direction=right width=428 height=228><IMG style="DISPLAY: block; TEXT-ALIGN: center" src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_7.gif"></MARQUEE></MARQUEE></P>
从左向右移动 |
代码:
<TABLE border=0 cellPadding=0 width=396 background=http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_8.jpg align=center height=400>
<TBODY>
<TR>
<TD>
<DIV align=center>
<MARQUEE scrollAmount=2 height=400 width=596 direction=right><IMG style="FILTER: alpha WIDTH: 396px; HEIGHT: 400px" src=" http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_8.jpg"><BR>从左向右移动</MARQUEE>
<P style="MARGIN-TOP: -410px; MARGIN-LEFT: 10px"></P><EMBED style="DISPLAY: block" height=400 type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer width=350 src=http://pp6143.com.ne.kr/s52.swf quality="high" wmode="transparent" allowNetworking="internal" allowScriptAccess="never"></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></P>
参数详解:
1)scrollAmount。它表示速度,值越大速度越快。如果没有它,默认为6,建议设为1~3比较好。
2)width和height,表示滚动区域的大小,width是宽度,height是高度。特别是在做垂直滚动的时候,一定要设height的值。
3)direction。表示滚动的方向,默认为从右向左:←←←。可选的值有right、down、up。滚动方向分别为:right表示→→→,up表示↑,down表示↓。
4)scrollDelay,这也是用来控制速度的,默认为90,值越大,速度越慢。通常scrollDelay是不需要设置的。
5)behavior。用它来控制属性,默认为循环滚动,可选的值有alternate(交替滚动)、slide(幻灯片效果,指的是滚动一次,然后停止滚动)
注:移动宽度=图片宽度
鼠标指着就停止的移动图片代码:
代码:
<MARQUEE style="WIDTH: 897px; HEIGHT: 479px" onmouseover=this.stop() onmouseout=this.start() height=479 scrollAmount=2 scrollDelay=5 border="0">
<DIV align=left> <IMG src="http://image54.360doc.com/DownloadImg/2012/08/3114/26525116_8.jpg"> </DIV></MARQUEE>
说明:
onMouseOver=this.stop() onMouseOut=this.start() ——表示鼠标放到该对象上时移动停止,鼠标移开时又开始移动。
玖瑰花鼠标代码:
<P align=center> </P>
<BLOCKQUOTE></BLOCKQUOTE>
<STYLE>body{cursor:url(http://plugin.smileycentral.com/http%253a%252f%252fplugin%252esmileycentral%252ecom%252fassetserver%252fcursor%252ejhtml%253fcur%253d1%2526i%253d9646a/image.gif); }</STYLE>
文章评论