[08/21][分享]代码做图片特效---换场效果
<DIV style="position:relative; top:80px; left:-140px; width:800px; height:390px;overflow: hidden"><div style="position: absolute; top: 0px; left: 0px">
<?import namespace=t urn="urn:schemas-microsoft-com:time" implementation="#default#time2" declareNamespace/>
<t:SEQ repeatCount="indefinite">
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/001_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="fade" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/002_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="ClockWipe" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/003_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="snakeWipe" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/004_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="ellipseWipe" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
</t:SEQ>
</div>
</DIV>
<TEXTAREA rows=7cols=100>
<DIV style="position:relative; top:80px; left:-140px; width:800px; height:390px;overflow: hidden">
<div style="position: absolute; top: 0px; left: 0px">
<?import namespace=t urn="urn:schemas-microsoft-com:time" implementation="#default#time2" declareNamespace/>
<t:SEQ repeatCount="indefinite">
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/001_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="fade" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/002_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="ClockWipe" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/003_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="snakeWipe" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
<t:MEDIA style="FILTER:alpha;LEFT:0;TOP:0;WIDTH:800;POSITION:absolute" src=http://www.sucaicd.com/ex/ex049/004_L.jpg dur="3" fill="transition" timeContainer="par">
<t:TRANSITIONFILTER from="0" to="1" type="ellipseWipe" dur="2">
</t:TRANSITIONFILTER>
</t:MEDIA>
</t:SEQ>
</div>
</DIV>
</TEXTAREA> <br> <br>
说明:
<br><TEXTAREA rows=22 cols=100>
1.效果代码:
<t:TRANSITIONFILTER from="0" to="1" type="fade" dur="2">
type="fade":图片变化属性=值
值:
fade 图片渐显渐隐
barWipe 图片从左到右拉开
ClockWipe 图片像钟表一样旋转拉开
barnDoorWipe 图片从中间向两边拉开
slideWipe 图片右往左边拉开
irisWipe 图片正中矩形向外扩散
snakeWipe 图片蛇形展开
ellipseWipe 图片正中小圆向外扩散
spiralWipe 图片螺旋显示
pushWipe 图片右往左像推箱子一样
2.定位代码:
<DIV style="position:relative; top:150px; left:-220px; width:800px; height:390px;overflow: hidden">
width:800px; height:390px:定显示的宽和高,
top:150px; left:-70px;;定该显示离顶和左边的距离(和全屏原理一样)
</TEXTAREA> <br> <br><BR><P align=right><A href=http://bbs.xyhc.com/viewthread.php?tid=611052&page=1&extra=page%3D1#pid851758175><FONT size=2 color=red>*點擊觀看更多教程*</FONT></A></P><BR>
[ 本帖最后由 月儿 于 2006-8-23 12:18 编辑 ] 我用的是 firefox, 看不到那特效, 當待舞舞看吧!! 这个刚好解决四点的问题我也学习一下 那些代码也不懂的说 ^^ 原来我们这还有隐藏的高手。。。 呵呵,谢谢紫蝶的分享,的确解决了四点的问题 第一次进来,好好做个好学生! 好厉害!我要好好学下。 哈好帖!解决问题!!! 嘿嘿 俺来看看 太深奥了 但是还是要学习一下
页:
[1]
2