用代码做动态的滤镜效果3
<H2><FONT size=4>Shadow滤镜效果</FONT></H2><P> </P>
<P><FONT size=4>&lt;DIV style=\"position:relative; top:30px; left:0px; width:700px;height:200px\"&gt;
&lt;STYLE&gt;.time {
&nbsp;BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
&lt;/STYLE&gt;
&lt;?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace /&gt;
&lt;DIV align=center&gt;&lt;DIV id=t3 style=\"FILTER: shadow(color=#3f4029, strength=29); WIDTH: 100%\"&gt; &lt;img src=\"</FONT><A href=\"http://media.imhb.cn/homepic/2007/12/26/20071226215655_61179.jpg\"><FONT color=#606060 size=4>http://media.imhb.cn/homepic/2007/12/26/20071226215655_61179.jpg</FONT></A><FONT size=4>\" width=201 height=151&gt;
&lt;t:animate targetElement=\"t3\" attributeName=\"filters.Shadow.strength\" from=\"80\" to=\"5\" begin=\"0\" dur=\"3\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</FONT>
</P>
<P></P>
<P> </P>
<P> </P>
<DIV style="position:relative; top:30px; left:0px; width:700px;height:200px">
<STYLE>.time {
BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
</STYLE>
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace />
<DIV align=center><DIV id=t3 style="FILTER: shadow(color=#3f4029, strength=29); WIDTH: 100%"> <img src="http://media.imhb.cn/homepic/2007/12/26/20071226215655_61179.jpg" width=201 height=151>
<t:animate targetElement="t3" attributeName="filters.Shadow.strength" from="80" to="5" begin="0" dur="3" end="" autoreverse="false" repeatcount="indefinite"/>
</div>
</div>
</div> <P><STRONG><FONT color=black size=4>阴影字的效果</FONT></STRONG></P>
<P> </P>
<P><FONT color=blue size=4>&lt;DIV style=\\"position:relative; top:30px; left:0px; width:700px;\\"&gt;
&lt;STYLE&gt;.time {
&nbsp;BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
&lt;/STYLE&gt;
&lt;?import namespace = t urn = \\"urn:schemas-microsoft-com:time\\" implementation = \\"#default#time2\\" declareNamespace /&gt;</FONT></P>
<P><FONT color=blue size=4>&lt;div id=z3 style=\\"position: absolute; filter:Shadow(color=#edb4ef,direction=135,strength=29)\\"&gt;&lt;font face=楷书 color=#ff00ff size=7&gt;&lt;b&gt;阴影字的效果&lt;/b&gt;&lt;/font&gt;&lt;br&gt;</FONT></P>
<P><FONT color=blue size=4>&lt;t:animate targetElement=\\"z3\\" attributeName=\\"filters.Shadow.strength\\" from=\\"25\\" to=\\"0\\" begin=\\"0\\" dur=\\"2\\" end=\\"\\" autoreverse=\\"false\\" repeatcount=\\"indefinite\\"/&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</FONT></P>
<P></P>
<DIV style=\"position:relative; top:30px; left:0px; width:700px;\">
<STYLE>.time {
BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
</STYLE>
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<div id=z3 style=\"position: absolute; filter:Shadow(color=#edb4ef,direction=135,strength=29)\"><font face=楷书 color=#ff00ff size=7><b>阴影字的效果</b></font><br>
<t:animate targetElement=\"z3\" attributeName=\"filters.Shadow.strength\" from=\"25\" to=\"0\" begin=\"0\" dur=\"2\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/>
</div></div></div> 谢谢分享,我收下了
页:
[1]