home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / ProfielBtn.htc < prev    next >
Encoding:
Text File  |  2000-09-04  |  1.2 KB  |  43 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 > 0) parent.snd.src="sounds/audio1.wav";
  18.   switch (element.type) {
  19.     case 'x':
  20.       eraseCurrentUser();
  21.       self.location.href = "profiel.html";
  22.     break;
  23.     case 'qi':
  24.       storeData();
  25.       buildQi();
  26.       qiMode = true;
  27.     break;
  28.     case 'ok':
  29.       storeData();
  30.       if ((qiMode == false) && (profielType == 0)) {
  31.         buildQi();
  32.         qiMode = true;
  33.         }
  34.       else if ((qiMode == true) && (profielType == 1)) {
  35.         QiArea.style.visibility = 'hidden';
  36.         qiMode = false;
  37.         }
  38.       else if (((qiMode == true) && (profielType == 0)) || ((qiMode == false) && (profielType == 1))) parent.quitProfiel();
  39.     break;
  40.     }
  41.   }  
  42. </script>
  43.