<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>
<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\">是對以下內(nèi)容的相對定位。
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下面指定內(nèi)容的前綴
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連續(xù)性變化的代碼。
t:animate 是標記連續(xù)性地變化;
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\"表示變化方式為不循環(huán),true為循環(huán);
repeatcount=\"indefinite\"表示變換次數(shù)為重復變化。
[ 本帖最后由 小白兔 于 2008-3-22 13:11 編輯 ] |