home *** CD-ROM | disk | FTP | other *** search
/ Minami 40 / MINAMI40.ISO / Extra / MPSetup.exe / 1033 / RCDATA / CABINET / wmploc.DLL / HTML / CLOSEBUTTON.HTC < prev    next >
Text File  |  2002-12-14  |  1KB  |  33 lines

  1. <PUBLIC:COMPONENT lightWeight=true>
  2. <PUBLIC:ATTACH EVENT="oncontentready" ONEVENT="load()" />
  3. <PUBLIC:ATTACH EVENT="onmouseout"  ONEVENT="mouseout()" />
  4. <PUBLIC:ATTACH EVENT="onmouseover"  ONEVENT="mousemove()" />
  5. <PUBLIC:ATTACH EVENT="onmousedown" ONEVENT="mousedown()" />
  6. <PUBLIC:ATTACH EVENT="onmouseup" ONEVENT="mouseup()" />
  7. <PUBLIC:ATTACH EVENT="onfocus"  ONEVENT="mousemove()" />
  8. <PUBLIC:ATTACH EVENT="onblur"  ONEVENT="mouseout()" />
  9. <PUBLIC:PROPERTY NAME="direction" />
  10.  
  11. <SCRIPT LANGUAGE="JScript">
  12.  
  13. var sNormal = 'close-normal.gif'
  14. var sOver = 'close-hover.gif'
  15. var sClick = 'close-down.gif'
  16.  
  17. var sId, iDir;
  18. function load() 
  19.     sId = element.uniqueID + 'But';
  20.     element.href = element.alt;
  21.     element.innerHTML = '<IMG id="' + sId + '" border=0 title="' + element.alt + '" src="images\\' + sNormal + '">'; 
  22. }
  23.  
  24. function setImage(sImg) { element.document.all(sId).src = 'images\\' + sImg; }
  25. function mouseout() { setImage(sNormal); }
  26. function mousemove() { setImage(sOver); }
  27. function mousedown() { setImage(sClick); }
  28. function mouseup() { setImage(sNormal); }
  29.  
  30. </SCRIPT>
  31. </PUBLIC:COMPONENT>
  32.