home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / VraagBtn.htc < prev    next >
Encoding:
Text File  |  2000-09-04  |  1006 b   |  39 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 (antwoordArray[theNum] == '') {
  9.     element.style.backgroundImage = "url('images/bt_vraag_1.bmp')";
  10.     }
  11.   else element.style.color = "#ffffff";
  12.   }
  13.  
  14. function Restore() {
  15.   theNum = parseInt(element.num);
  16.   if (antwoordArray[theNum] == '') {
  17.     element.style.backgroundImage = "url('images/bt_vraag_0.bmp')";
  18.     }
  19.   else element.style.color = "#000000";
  20.   }
  21.  
  22. function Choose() {
  23.   theNum = parseInt(element.num);
  24.   doVraag(theNum);
  25.   
  26.   if (parent.soundSettings == 2) parent.snd.src="sounds/audio5.wav";
  27.   
  28.   if (antwoordArray[theNum] == '') {
  29.     FbkArea.innerHTML = '';  
  30.     FbkArea.style.visibility = 'hidden';
  31.     FbkBtn.style.visibility = 'hidden';
  32.     }
  33.   else {
  34.     doAntwoord();
  35.     }
  36.   }
  37.   
  38. </script>
  39.