代碼:
<DIV style=\"position:relative; top:0px; left:0px; width:500px; height:350px;overflow: hidden\">
<?import namespace = v urn = \"urn:schemas-microsoft-com:vml\" implementation = \"#default#VML\" declareNamespace />
<v:image id=wo style=\"POSITION: absolute; LEFT: 160px; TOP: 80px; WIDTH: 200px; HEIGHT: 200px;\" src = \"http://up1.googletounion.com/data/bbs/10/96/1096/a/VVV_kfvJqcav2Y2s.gif\" coordsize = \"21600,21600\">
</v:image>
<?import namespace = t urn = \"urn:schemas-microsoft-com:time\" implementation = \"#default#time2\" declareNamespace />
<t:animate attributeName = \"rotation\" from = \"-360\" targetElement = \"wo\"\"to = \"0\" accelerate = \"0\" begin = \"0\" dur = \"16\" fill = \"hold\" repeatCount = \"indefinite\">
</t:animate>
</DIV>
制作方法:
1.必須用VML語言顯示圖片,見代碼上半部分.
style=\"POSITION: absolute; LEFT: 160px; TOP: 80px; WIDTH: 200px; HEIGHT: 200px;\"調(diào)節(jié)圖片大小和位置.
2.下半部分是旋轉(zhuǎn)代碼.from = \"-360\"旋轉(zhuǎn)方向.dur = \"16\"旋轉(zhuǎn)一次所需時間(秒),越大越慢.
3.id=wo和targetElement = \"wo\"必須一致.但一個葉面只能出現(xiàn)一次.要同時顯示必須改變它的值wo. 只要兩樣寫什么都可以.
將你的:
id=wo
targetElement = \"wo\"
改成
id=wo恬心
targetElement = \"wo恬心\"
就都轉(zhuǎn)了
原理再看看教程
原帖由 gaoss33 于 2008-7-9 23:38 發(fā)表將你的: id=wo targetElement = \"wo\" 改成 id=wo恬心 targetElement = \"wo恬心\" 就都轉(zhuǎn)了 原理再看看教程
歡迎光臨 中畫網(wǎng) (http://www.nujv.cn/) | Powered by Discuz! X3.4 |