<PUBLIC:METHOD NAME="tick" />
<PUBLIC:METHOD NAME="startFly" />
<PUBLIC:PROPERTY NAME="from" />
<PUBLIC:PROPERTY NAME="fromX" />
<PUBLIC:PROPERTY NAME="fromY" />
<PUBLIC:PROPERTY NAME="delay" />
:
<SCRIPT LANGUAGE="jscript">
var currCount;
var flyCount;
var flying;
var msecs;
var oTop, oLeft;
msecs = 50;
flyCount = 20;
flying = false;
runtimeStyle.position = "relative";
runtimeStyle.visibility = "hidden";
window.attachEvent("onload", onload);
function onload()
{
// delay commences from the window.onLoad event
if (delay != "none")
{
window.setTimeout(uniqueID+".tick()", delay);
}
}
function tick()
{
if (flying == false)
{
startFly();
}
else
{
doFly();
}
}
:
</SCRIPT>
<PUBLIC:ATTACH EVENT="onload" FOR="window" ONEVENT="init()" />
<SCRIPT LANGUAGE="JScript">
function init()
{
// Specifying an ID=document.uniqueID ensures that a unique identifier
// will be assigned to the element being inserted into the page by
// the behavior.
newTextAreaID = element.document.uniqueID;
element.document.body.insertAdjacentHTML ("beforeEnd",
"<P><TEXTAREA STYLE='height: 200 ;"+
"width: 350' ID= " + newTextAreaID + "></TEXTAREA></P>");
}
</SCRIPT>