home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / StepBtn.htc < prev    next >
Encoding:
Text File  |  2000-09-04  |  920 b   |  32 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.   S = element.src;
  8.   element.src = S.slice(0,S.length-5) + '1' + S.slice(S.length-4);
  9.   }
  10.  
  11. function Restore() {
  12.   S = element.src;
  13.   element.src = S.slice(0,S.length-5) + '0' + S.slice(S.length-4);
  14.   }
  15.   
  16. function Choose() {
  17.   if (parent.soundSettings == 2) parent.snd.src="sounds/ok.wav";
  18.   switch (element.type) {
  19.     case 'ok':
  20.       RekenArea.style.visibility = 'inherit';
  21.       TextArea[0].style.visibility = 'hidden';
  22.       CountBox[0].style.visibility = 'inherit';
  23.     break;
  24.     case 'terug':
  25.       RekenArea.style.visibility = 'hidden';
  26.       TextArea[0].style.visibility = 'inherit';
  27.       CountBox[0].style.visibility = 'hidden';
  28.     break;
  29.     }
  30.   }  
  31. </script>
  32.