
意外發現 iGoogle API 中沒有提到的 flash 播放方式,首先要在 ModulePrefs 內放一段:<Require feature="flash" /> 接著使用 _IG_EmbedFlash(),完整程式碼如下: <?xml version="1.0" encoding="UTF-8" ?>
- <Module>
- <ModulePrefs title="A Million Thank Yous">
<Require feature="flash" />
</ModulePrefs>
- <Content type="html">
- <![CDATA[
<div id="flashPlayer"></div>
<script>
_IG_EmbedFlash('http://h.vctu.com/1000000.swf', _gel('flashPlayer'), {width: 300, height: 200});
</script>
]]>
</Content>
</Module> 想要直接加入 iGoogle 的話,可以用此連結:
http://h.vctu.com/AMillionThankYous.xml |