home *** CD-ROM | disk | FTP | other *** search
/ Beweegwijzer / beweegwijzer.iso / setup / _SETUP.1 / ButtonSex.htc < prev    next >
Encoding:
Text File  |  2000-03-22  |  739 b   |  27 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 == 'm') {
  18.     Sex[0].style.textDecoration = 'underline';
  19.     Sex[1].style.textDecoration = 'none';    
  20.     }
  21.   else if (element.innerText == 'v') {
  22.     Sex[0].style.textDecoration = 'none';
  23.     Sex[1].style.textDecoration = 'underline';    
  24.     }
  25.   }
  26. </script>
  27.