home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / ButtonGeluid.htc < prev    next >
Encoding:
Text File  |  2000-04-07  |  1.1 KB  |  37 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.   element.style.backgroundColor = '#ffcf5f';
  8.   element.style.color = '#ffffff';
  9.   }
  10.  
  11. function Restore() {
  12.   element.style.backgroundColor = '#ffbc4d';
  13.   element.style.color = '#000000';
  14.   }
  15.   
  16. function Choose() {
  17.   if (element.innerText == 'uit') {
  18.     Geluid[0].style.textDecoration = 'underline';
  19.     Geluid[1].style.textDecoration = 'none';
  20.     Geluid[2].style.textDecoration = 'none';
  21.     parent.soundSettings = 0;
  22.     }
  23.   else if (element.innerText == 'min') {
  24.     Geluid[0].style.textDecoration = 'none';
  25.     Geluid[1].style.textDecoration = 'underline';
  26.     Geluid[2].style.textDecoration = 'none';
  27.     parent.soundSettings = 1;    
  28.     }
  29.   else if (element.innerText == 'max') {
  30.     Geluid[0].style.textDecoration = 'none';
  31.     Geluid[1].style.textDecoration = 'none';
  32.     Geluid[2].style.textDecoration = 'underline';
  33.     parent.soundSettings = 2;    
  34.     }
  35.   }
  36. </script>
  37.