- Processingのfile->exportでxxx.jarファイルを生成
- iGoogle用のxmlファイルを作成(xxx.xmlを見よ)
- DropboxのPublicにxxx.jarとxxx.xmlを配置
- iGoogleでxxx.xmlをgadgetとして登録(コンテンツを追加->フィードやガジェットを追加, urlはxxx.xmlのpublic linkを指定)
- はてなの投稿ページにgadgetにアクセスするタグを追加(tagを見よ)
xxx.xml
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Fun of Processing!" height="460" />
<Content type="html">
<![CDATA[
<applet archive= "http://dl.dropbox.com/u/58702/bounce04.jar"
code="bounce04.class" width="320" height="460" ></applet>
]]>
</Content>
</Module>
tag
<div class="hatena-widget">
<script src="http://gmodules.com/ig/ifr?url=http://yoursite.jp/applet/yourgadget.xml&
synd=open&w=100&h=35&title=&border=%23ffffff%7C0px%2C0px+solid+%23ffffff& output=js"></script> </div>
No comments:
Post a Comment