Yahoo!ウェジェットに寄り道してます。
FxWidget.konの内容
<?xml version="1.0" encoding="UTF-8"?>
<widget>
<debug>off</debug>
<window>
<name>main_window</name>
<title>FX Widget</title>
<height>500</height>
<width>500</width>
<visible>true</visible>
<textarea>
<name>myText</name>
<color>#FFFFFF</color>
<size>12</size>
<alignment>left</alignment>
<vOffset>100</vOffset>
<hOffset>250</hOffset>
<scrollbar>true</scrollbar>
<bgColor>#000000</bgColor>
</textarea>
</window>
<timer>
<name>timer</name>
<interval>300</interval>
<ticking>true</ticking>
<onTimerFired>
<!--
execute();
-->
</onTimerFired>
</timer>
<action trigger="onLoad">
<!--
function execute() {
var req = new XMLHttpRequest();
req.open( "GET", "http://markets.nikkei.co.jp/kawase/index.cfm", false );
req.send();
DeleteLineFeed(req.responseText).match(/kabu_table1\">(.*)<div class=\"column\">/i);
table = RegExp.$1;
print("" + table + "");
content = table.replace(/<\/tr>/g, "\n");
content = content.replace(/<\/h4>/g, "\n");
content = content.replace(/<\/li>/g, "\n");
content = content.replace(/<.*?>/g, "");
content = content.replace(/ \;/g," ");
print("[" + content + "]");
myText.data = content;
}
function DeleteLineFeed(myLen) {
var newLen = '';
for(var i=0; i<myLen.length; i++){
text = escape(myLen.substring(i, i+1));
if(text != "%0D" && text != "%0A"){
newLen += myLen.substring(i, i+1);
}
}
return(newLen);
}
execute();
-->
</action>
</widget>