Internet Explorer 5.0 Preview, Part I: The Full Scriptlet Code - Doc JavaScript | WebReference

Internet Explorer 5.0 Preview, Part I: The Full Scriptlet Code - Doc JavaScript


The Full Scriptlet Code

Here is the full scriptlet code:


<SCRIPTLET ID="soccer">
<IMPLEMENTS ID="kuku" TYPE="Behavior" DEFAULT>
<EVENT NAME="onFifthBlink"/>
</IMPLEMENTS>
<IMPLEMENTS TYPE="Automation">
<METHOD NAME="blink"/>
<PROPERTY NAME="x"/>
<PROPERTY NAME=y/>
</IMPLEMENTS>
<SCRIPT LANGUAGE="JavaScript">
var msecs =2000;
var counter = 0;
style.position = "absolute";
style.pixelTop = x;
style.pixelLeft = y;
 
window.attachEvent("onload", onload);
function onload()
{
  window.setTimeout(uniqueID+".blink()", msecs);
}
function blink() {
  style.visibility = (style.visibility == "hidden") ? "visible" : "hidden";  
  counter +=1;
  if (counter == 10) {
    fireEvent("onFifthBlink");
    counter = 0;
  }
  window.setTimeout(uniqueID+".blink()", msecs);
} 
</SCRIPT>
</SCRIPTLET>

http://www.internet.com


Created: July 19, 1998
Revised: July 19, 1998

URL: http://www.webreference.com/js/column22/code1.html