<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs
 title="__UP_camname__ by SemantiqNode"
 height="240"
 title_url="http://dream.jp/ubiquitous/snode/about/"
 description="Dream SemantiqNode WebCamera プラグインの画像を表示します。"
 author="DreamHUB Team."
>
<Require feature="dynamic-height"/>
</ModulePrefs>
<UserPref name="camname" display_name="カメラ名(タイトルの???に入ります)" required="true" />
<UserPref name="snodename" display_name="マイノード名" required="true" />
<Content type="html">
<![CDATA[
<script language="javascript">
// Get userprefs
   var prefs = new _IG_Prefs(__MODULE_ID__);

// SemantiqNode WebCam Plugin CamImage Loading.

function camimage()
{
// get time
var now = new Date();
var time = now.getTime();

// image load
var snode_camimage1 = prefs.getString("snodename")
document.cam.src = "http://snapi.dream.jp/sn/" + snode_camimage1 + "/_pub/@fbx.webcam.capture/" + time;
}

// AdjustIFrameHeight Require dynamic-height
//IG_AdjustIFrameHeight();
</script>

<div id="snode_camimage" align=center>
<a href="#" onclick="camimage()">
<img src="" name="cam" border=0 width=320 height=240>
</a>

</div>

<script>
// Onload IG Function.
_IG_RegisterOnloadHandler(camimage());
</script>

]]></Content>
</Module>

