home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / LinkBtn.htc < prev    next >
Encoding:
Text File  |  2000-09-04  |  886 b   |  31 lines

  1. <PUBLIC:ATTACH EVENT="onmouseover" HANDLER="Hilite" />
  2. <PUBLIC:ATTACH EVENT="onmouseout"  HANDLER="Restore" />
  3. <PUBLIC:ATTACH EVENT="onclick"  HANDLER="Choose" />
  4.  
  5. <script language="JavaScript">
  6. function Hilite() {
  7.   theNum = parseInt(element.num);
  8.   if (theNum == chosenAlt) return;
  9.   element.style.backgroundImage = "url('images/radiobtn_1.gif')";
  10.   }
  11.  
  12. function Restore() {
  13.   theNum = parseInt(element.num);
  14.   if (theNum == chosenAlt) return;  
  15.   element.style.backgroundImage = "url('images/radiobtn_0.gif')";
  16.   }
  17.  
  18. function Choose() {
  19.  
  20.   theNum = parseInt(element.num);
  21.   if (theNum == chosenAlt) return;
  22.   for (var i=0; i<LinkBtn.length; i++) {
  23.     LinkBtn[i].style.backgroundImage = "url('images/radiobtn_0.gif')";
  24.     }
  25.   element.style.backgroundImage = "url('images/radiobtn_2.gif')";
  26.   chosenAlt = theNum;
  27.   
  28.   showLink(element.url);
  29.   }
  30. </script>
  31.