home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / WandelBtn.htc < prev    next >
Encoding:
Text File  |  2000-09-04  |  1.7 KB  |  51 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 'letop':
  20.       TextArea[0].style.visibility = 'inherit';
  21.       TextArea[1].style.visibility = 'inherit';
  22.       TextArea[2].style.visibility = 'inherit';
  23.       TextArea[3].style.visibility = 'inherit';
  24.       PopArea.style.visibility = 'inherit';
  25.     break;
  26.     case 'ok':
  27.       PopArea.style.visibility = 'hidden';
  28.       RekenArea.style.visibility = 'inherit';
  29.       TextArea[0].style.visibility = 'hidden';
  30.       TextArea[1].style.visibility = 'hidden';
  31.       TextArea[2].style.visibility = 'hidden';
  32.       TextArea[3].style.visibility = 'hidden';
  33.       CountBox[0].style.visibility = 'inherit';
  34.       CountBox[1].style.visibility = 'inherit';
  35.       CountBox[2].style.visibility = 'inherit';            
  36.     break;
  37.     case 'terug':
  38.       PopArea.style.visibility = 'hidden';
  39.       RekenArea.style.visibility = 'hidden';
  40.       TextArea[0].style.visibility = 'inherit';
  41.       TextArea[1].style.visibility = 'inherit';
  42.       TextArea[2].style.visibility = 'inherit';
  43.       TextArea[3].style.visibility = 'inherit';
  44.       CountBox[0].style.visibility = 'hidden';
  45.       CountBox[1].style.visibility = 'hidden';
  46.       CountBox[2].style.visibility = 'hidden';        
  47.     break;
  48.     }
  49.   }  
  50. </script>
  51.