(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:0px; left:0px; width:700px; height:500px;overflow: hidden"> width:700px; height:500px:定显示的宽和高,(原图片的尺寸是:700×500) top:0px; left:0px;;定该显示离顶和左边的距离。
举例如下:
原图:
代码:
<DIV style="LEFT: 0px; OVERFLOW: hidden; WIDTH: 700px; POSITION: relative; TOP: 0px; HEIGHT: 500px"> <DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px">
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace />
<t:SEQ repeatCount = "indefinite"><t:MEDIA style="FILTER: alpha; LEFT: 0px; WIDTH: 700px; POSITION: absolute; TOP: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239100786.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>
显示效果图:
将ellipseWipe依次换成其它变化属性(代码的其它部分不变!):fade、barWipe、ClockWipe、barnDoorWipe、slideWipe、irisWipe、snakeWipe、spiralWipe、pushWipe的显示效果图如下:
合在一起:
代码为:
<P align=center> <TABLE border=0> <TBODY> <TR> <TD> <DIV style="POSITION: relative; WIDTH: 700px; HEIGHT: 500px; TOP: 0px; LEFT: 0px" class=divBorderStyleRelative> <DIV style="POSITION: absolute; TOP: 0px; LEFT: 0px" class=divBorderStyle><t:SEQ repeatCount = "indefinite"><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239100786.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "fade" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239130786.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "barWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239160177.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "ClockWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239180896.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "barnDoorWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239210567.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "slideWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239100786.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "irisWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239130786.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "snakeWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239160177.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "ellipseWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239160177.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "spiralWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA><t:MEDIA style="POSITION: absolute; FILTER: alpha; WIDTH: 700px; TOP: 0px; LEFT: 0px" src = "http://userimage2.360doc.com/12/0403/12/2904667_201204031239180896.jpg" dur = "3" fill = "transition" timeContainer = "par"><t:TRANSITIONFILTER from = "0" to = "1" type = "spiralWipe" dur = "2"></t:TRANSITIONFILTER></t:MEDIA></t:SEQ></DIV></DIV></TD></TR></TBODY></TABLE></P>
|