home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / NavBtn.htc < prev    next >
Encoding:
Text File  |  2000-09-04  |  1.5 KB  |  52 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/audio2.wav";
  18.   switch (element.type) {
  19.     case 'profiel':
  20.        parent.AppPage.location.href = 'profiel.html';
  21.     break;
  22.     case 'menu':
  23.       parent.AppPage.location.href = 'menu.html';
  24.     break;
  25.     case 'terug':
  26.       parent.AppPage.location.href = element.url;
  27.     break;
  28.     case 'help':
  29.       HelpArea.style.visibility = 'visible';
  30.       NavBtn[0].style.visibility = 'inherit';
  31.       NavBtn[1].style.visibility = 'hidden';
  32.       NavBtn[2].style.visibility = 'inherit';
  33.     break;
  34.     case 'nohelp':
  35.       HelpArea.style.visibility = 'hidden';
  36.       NavBtn[0].style.visibility = 'hidden';
  37.       NavBtn[1].style.visibility = 'inherit';
  38.       NavBtn[2].style.visibility = 'hidden';          
  39.     break;     
  40.     case 'beweegplanner':
  41.       parent.AppPage.location.href = 'beweegplan.html';
  42.     break;
  43.     case 'beweegmeter':
  44.       parent.AppPage.location.href = 'beweegtugenoeg.html';
  45.     break;
  46.     case 'print':
  47.       parent.AppPage.print();
  48.     break;      
  49.     }
  50.   }
  51. </script>
  52.