中畫網

標題: 用代碼做動態的濾鏡效果 [打印本頁]

作者: 小白兔    時間: 2008-3-11 22:26
標題: 用代碼做動態的濾鏡效果
在這特別感謝黎民百興提供的Wave動態濾鏡代碼!






<DIV style="position:relative; top:0px; left:0px; width:800px;height:500px">
<STYLE type="text/css">
<!--
.time{
behavior:url(#default#time2);
}
t\:* {
behavior: url(#default#time2);
}
v\:* {
behavior: url(#default#VML);
}
-->
</STYLE>
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace />
<div style="position:absolute; top:0; left:0; width:300; height:234;">
<IMG src="<IMG id="s1" src="</div>
<t:animate targetElement="s1" attributeName="filters.Wave.Phase" from="100" to="0" begin="0" dur="2" end="" autoreverse="false" repeatcount="indefinite"/></div>




Wave濾鏡
Wave濾鏡



<DIV style="position:relative; top:30px; left:0px; width:700px;height:300px;">
<STYLE>.time {
BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
</STYLE>
<?import namespace = t urn = "urn:schemas-microsoft-com:time" implementation = "#default#time2" declareNamespace />
<div style="position:absolute; top:0; left:0;"><font face=楷書 color=#00ff00 size=7>Wave濾鏡</font></div>
<div id=z1 style="position:absolute; top:40; left:0;filter: Wave(Add=0,Freq=3,Lightstrength=30,Phase=10,Strength=3) Flipv;"><font face=楷書 color=#00ff00 size=7>Wave濾鏡</font></div>
<t:animate targetElement="z1" attributeName="filters.Wave.Phase" from="500" to="0" begin="0" dur="3" end="" autoreverse="false" repeatcount="indefinite"/></div>


[ 本帖最后由 小白兔 于 2008-3-11 22:46 編輯 ]
作者: 小白兔    時間: 2008-3-11 22:32
標題: Glow濾鏡效果




<DIV style=\"position:relative; top:30px; left:0px; width:700px;height:300 \">
<STYLE>.time {
BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
</STYLE>
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<IMG id=\"t2\" src=\"
http://media.imhb.cn/homepic/2007/12/8/20071208225517_52486.gif\" style=\"position:absolute; left:0; top:0; width:300; height:212;filter:glow(color=#ee14d2 strength=20);color:white\">

<t:animate targetElement=\"t2\" attributeName=\"filters.glow.strength\" from=\"6\" to=\"0\" begin=\"0\" dur=\"1\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/></div>

Glow濾鏡




<DIV style=\"position:relative; top:30px; left:0px; width:700px; height:150\">
<STYLE>.time {
BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
</STYLE>
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />

<div id=z2 style=\"width:100%;filter:glow(color=#1e90ff strength=16);color:white\"><FONT color=#00ff00 face=楷書 size=7>

Glow濾鏡</FONT></div>

<t:animate targetElement=\"z2\" attributeName=\"filters.glow.strength\" from=\"10\" to=\"0\" begin=\"0\" dur=\"1\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/></div>

對以上這段代碼的說明:

1)<DIV style=\"position:relative; top:30px; left:0px; width:700px; height:150\">是對以下內容的相對定位。

  

top:30px;是離頂部距離30px;left:0px; 是離左邊距離0px;

2)<STYLE>.time {
BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
</STYLE>
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />

這是HTML+TIME下面指定內容的前綴

3)<div id=z2 style=\"width:100%;filter:glow(color=#1e90ff strength=16);color:white\">這段是Glow濾鏡代碼。

id=z2 是對這個濾鏡的標簽(注:與下面的 targetElement=\"z2\"必須一致,同一個頁面不能使用同樣的id)

4)<t:animate targetElement=\"z2\" attributeName=\"filters.glow.strength\" from=\"10\" to=\"0\" begin=\"0\" dur=\"1\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/>這段是讓Glow連續性變化的代碼。

t:animate 是標記連續性地變化;

targetElement=\"z2\"表示目標單元為\"z2\",用來表示作用到\"z2\"上;

attributeName=\"filters.glow.strength\" 表示屬性的名字是\"filters.glow.strength\"

from=\"10\" to=\"0\"表示變化的范圍從10到0;

begin=\"0\" dur=\"1\" 表示從0秒鐘開始變化,變化一次的時間過程為1秒鐘;

autoreverse=\"false\"表示變化方式為不循環,true為循環;

repeatcount=\"indefinite\"表示變換次數為重復變化。

[ 本帖最后由 小白兔 于 2008-3-22 13:11 編輯 ]
作者: 小白兔    時間: 2008-3-11 22:44
標題: Shadow濾鏡效果




<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>

陰影字的效果




<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>


作者: 小白兔    時間: 2008-3-11 22:49
標題: Alpha濾鏡效果




<DIV style=\"position:relative; top:30px; left:0px; width:700px;height:300px\">
<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>
<IMG id=t4 src=http://media.imhb.cn/homepic/2007/12/26/20071226215655_61179.jpg style=\"filter: Alpha(Opacity=100,Style=0)\" border=0>
<t:animate targetElement=\"t4\" attributeName=\"filters.Alpha.Opacity\" from=\"100\" to=\"0\" begin=\"0\" dur=\"4\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/>
</div>
</div>

Alpha濾鏡效果




<DIV style=\"position:relative; top:30px; left:0px; width:700px;height:120px\">
<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=z4 style=\"position: absolute; filter:filter: Alpha(Opacity=100,Style=0)\"><font face=華文新魏 color=#0000fa size=7><b>Alpha濾鏡效果</b></font><br>

<t:animate targetElement=\"z4\" attributeName=\"filters.Alpha.Opacity\" from=\"100\" to=\"0\" begin=\"0\" dur=\"4\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/>
</div>
</div>
</div>
<br><br><br>



作者: 祝福    時間: 2008-3-11 22:55
兔兔真聰明!
作者: 快樂相隨    時間: 2008-3-11 23:06
兔兔越研究越高深了,厲害。
作者: 雄杰獨倚    時間: 2008-3-12 02:26
文字跟圖片都有了~來聽聽大師的講課了~
作者: 紅塵有你    時間: 2008-3-12 08:29
新人剛來這里, 學習學習 這么好的效果
作者: smallcat    時間: 2008-3-12 10:57
謝謝兔兔哈 做帖子能用上的 辛苦了
作者: 海鷗    時間: 2008-3-14 10:05
謝謝LZ 老師!這教程真不錯!
作者: 樹上    時間: 2008-3-17 09:35
向兔兔學習,待用到時再來碌卡!
作者: 天天    時間: 2008-3-17 13:56
有點暈,我要何時才能明白啊?!
作者: 橄欖樹    時間: 2008-3-21 15:21
[ 本帖最后由 小白兔 于 2008-3-21 23:23 編輯 ]
作者: 夢雪    時間: 2008-3-21 18:27

作者: 小白兔    時間: 2008-3-21 23:57
val id=alb style=\"position: absolute;top: 100px; left:50px; width:220px; height:220px;\" stroked=\"t\" strokecolor=\"#ffffcc\" strokeweight=\"0.6pt\" filled=\"t\" fillcolor=\"red\"> val>






作者: 小白兔    時間: 2008-3-21 23:59
標題: 15樓代碼

<DIV id=fgwz style=\"position:relative; top: 30px; left: 0px; width:500px; height:400px; overflow: hidden; filter:glow(color=#00bb00 strength=12);color:white\">
<STYLE>.time {
BEHAVIOR: url(#default#time2)
filter: /*ALE*/ }
</STYLE>

<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />

<?import namespace=v urn=\"urn:schemas-microsoft-com:vml\" implementation=\"#default#VML\" declareNamespace />
<vval id=alb style=\"position: absolute;top: 100px; left:50px; width:220px; height:220px;\" stroked=\"t\" strokecolor=\"#ffffcc\" strokeweight=\"0.6pt\" filled=\"t\" fillcolor=\"red\">
<v:path textpathok=\"t\"/>
<v:textpath style=\"FONT-SIZE:20px; FONT-FAMILY:隸書\" on=\"t\" fitpath=\"t\" string=\"★★★試旋轉文字的發光效果★★★HTML+TIME\"/>
<v:fill src=\"http://tech.china.com/zh_cn/home4u/sucai/gifanimation/line/0024.gif\" type=\"frame\" opacity=\"1\"/>
<v:shadow on=\"T\" type=\"single\" color=\"#000033\" offset=\"2px,2px\"/></vval>
<t:animate attributeName=\"rotation\" from=\"0\" targetElement=\"alb\" to=\"360\" accelerate=\"0\" begin=\"0\" dur=\"12\" fill=\"hold\" repeatCount=\"indefinite\"></t:animate>
<t:animate targetElement=\"fgwz\" attributeName=\"filters.glow.strength\" from=\"20\" to=\"0\" begin=\"0\" dur=\"6\" end=\"\" autoreverse=\"false\" repeatcount=\"indefinite\"/>

</DIV>

<br><br><br><br><br>


作者: 小白兔    時間: 2008-3-22 00:03
原帖由 天天 于 2008-3-17 13:56 發表 有點暈,我要何時才能明白啊?!
我明天把有些代碼的屬性寫上,這樣會容易看懂些
作者: 小白兔    時間: 2008-3-22 13:10
代碼的說明補在了2樓,有什么不清楚,大家可以提出來
作者: 文子    時間: 2008-3-22 13:38
謝謝兔兔,寫的很詳細了,好好學習下!
作者: 仲秋    時間: 2008-4-2 09:31




[ 本帖最后由 小白兔 于 2008-4-2 19:07 編輯 ]
作者: 仲秋    時間: 2008-4-2 09:32

作者: faruyun    時間: 2008-4-8 22:18
謝謝小白兔




作者: 天天    時間: 2008-4-16 00:06
老師辛苦了


[ 本帖最后由 天天 于 2008-4-16 00:15 編輯 ]
作者: 老樹新枝    時間: 2008-4-16 12:49
謝謝版主,這代碼很實用.
作者: 蝴蝶來過    時間: 2008-4-22 09:47
這個alpha濾鏡效果,怎樣做出兩張或三張圖片輪換的效果呢?
作者: 蝴蝶來過    時間: 2008-4-22 09:48
標題: 我也試試看
[ 本帖最后由 蝴蝶來過 于 2008-4-22 10:04 編輯 ]
作者: 蝴蝶來過    時間: 2008-4-30 13:36
標題: 怎么就不行呢

作者: haohanyu    時間: 2008-5-2 17:55
謝謝LZ。學習了!
作者: 止水寒冰    時間: 2008-5-4 01:20
還真是不錯的效果
作者: sybing1017    時間: 2008-5-16 01:04
很漂亮
作者: 恬心嫣然    時間: 2008-5-22 17:18
進來慢慢學習下
作者: 丹頂鶴    時間: 2008-5-25 23:56
試一試:
[ 本帖最后由 丹頂鶴 于 2008-5-26 00:00 編輯 ]
作者: 沂心    時間: 2008-5-28 16:44
學習
作者: 白雪皚皚    時間: 2008-6-1 10:55
要跟老師好好學習了。
作者: 樂樂姐    時間: 2008-6-3 07:47
這教程真不錯!
作者: 秋韻無語    時間: 2008-6-5 15:18
學習了,謝謝!
學習了,謝謝!

作者: 圓圓    時間: 2008-6-7 21:22
標題: 謝謝
謝謝樓主,收藏了
作者: bakon    時間: 2008-6-8 00:22
謝謝指導
作者: 風光無限    時間: 2008-6-14 01:15
謝謝老師,非常好。
作者: 一池清涼    時間: 2008-6-22 21:56
濾鏡從哪兒下載呢
作者: 一池清涼    時間: 2008-6-22 22:01
試了幾次都不行55555 [ 本帖最后由 一池清涼 于 2008-6-22 22:03 編輯 ]
作者: 巖洞    時間: 2008-7-8 14:51
謝謝分享!
謝謝分享!
[ 本帖最后由 巖洞 于 2008-7-8 14:56 編輯 ]
作者: 巖洞    時間: 2008-7-8 15:23
再試試效果!

作者: 巖洞    時間: 2008-7-8 15:31
效果真不錯!




作者: 水晶    時間: 2008-7-11 23:39
我也來試試
[ 本帖最后由 水晶 于 2008-7-11 23:46 編輯 ]
作者: skyline    時間: 2008-7-21 20:32

作者: 制勝未來    時間: 2008-8-28 20:56

作者: 梅溪    時間: 2008-8-28 22:08
感謝老師,學習了!
作者: huasichun    時間: 2008-8-29 20:30

作者: 梅溪    時間: 2008-8-29 20:38
謝謝兔兔,這些真的是好東西!
作者: 山路彎彎    時間: 2008-9-12 21:55
中秋佳節

作者: danran    時間: 2008-9-12 22:19

作者: 玫兒    時間: 2008-10-30 20:49
收獲真大,謝謝了




作者: 心弦    時間: 2008-10-30 20:50
好漂亮啊,謝謝!
作者: 白鴿    時間: 2008-11-15 22:32
辛苦樓主 請收下
作者: 祝福    時間: 2009-7-17 11:33
中畫網

作者: 聽雨軒    時間: 2009-7-19 17:34
謝謝小白兔分享,學習了。
謝謝小白兔分享,學習了。

作者: 私念獸    時間: 2009-9-2 08:39
試試看

作者: 嘯天蒼狼    時間: 2009-11-10 03:43
非常漂亮的效果,謝謝分享!
作者: 嘯天蒼狼    時間: 2009-11-10 03:43
非常漂亮的效果,謝謝分享!




歡迎光臨 中畫網 (http://www.nujv.cn/) Powered by Discuz! X3.4
主站蜘蛛池模板: 天天综合久久久网| 色噜噜狠狠色综合网| 国产综合精品蜜芽| 99久久国产综合精品五月天喷水 | 久久综合亚洲色HEZYO国产| 久久综合九色综合欧美就去吻| 久久婷婷五月综合成人D啪| 国产成+人欧美+综合在线观看| 狠狠色综合色区| 色欲色香天天天综合网站免费| 炫硕日本一区二区三区综合区在线中文字幕 | 91在线亚洲综合在线| 欧美综合图区亚洲综合图区| 综合在线视频精品专区| 国产精品综合久成人| 婷婷综合缴情亚洲狠狠尤物| 亚洲综合一区二区国产精品| 狠狠久久综合伊人不卡| 欧美综合视频在线| 色爱无码AV综合区| 狠狠色噜噜色狠狠狠综合久久| 色综合久久夜色精品国产| 欧美日韩一区二区综合| 亚洲综合欧美精品一区二区| 狠狠色噜噜狠狠狠狠色综合久AV| 狠狠色狠狠色综合日日不卡| 色综合合久久天天给综看| 久久综合综合久久狠狠狠97色88| 伊人色综合九久久天天蜜桃| 久久婷婷五月综合国产尤物app| 人人狠狠综合久久亚洲高清| 色狠狠色狠狠综合一区| 国产成人综合美国十次| 日韩亚洲国产综合高清| 国产精品亚洲综合久久| 色狠狠久久综合网| 激情综合婷婷色五月蜜桃| 91精品国产综合久久香蕉| 亚洲国产精品综合久久网络 | 大香网伊人久久综合网2020| 久久国产综合精品五月天|