spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column22


The Full Scriptlet Code

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


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

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