home *** CD-ROM | disk | FTP | other *** search
/ Chip Hitware 7 A / CHIP_HITWARE_7A.iso / internet / Webmaster / _SETUP.4 / Group3 / ielink.jav < prev    next >
Text File  |  1998-12-30  |  1KB  |  55 lines

  1. <!---BeginTitle--->IE4 link color change<!---BeginJAVHead---><script language="JavaScript">
  2. <!--
  3.  
  4. // By Jari Aarniala [foo@mbnet.fi]
  5.  
  6. if(navigator.appName == "Microsoft Internet Explorer" &&
  7. parseInt(navigator.appVersion) >= 4){
  8.     ie4 = true;
  9. }
  10. else {
  11.     ie4 = false;
  12. }
  13.  
  14. function changeColor(){
  15.     if(ie4){
  16.         what = window.event.srcElement;
  17.         if(what.className == "link"){
  18.             if(what.style.color == "green"){
  19.                 what.style.color = "lime";
  20.             }
  21.             else {
  22.                 what.style.color = "green";
  23.             }
  24.         }
  25.         else {}
  26.     }
  27. }
  28.  
  29. document.onmouseover = changeColor;
  30. document.onmouseout = changeColor;
  31.  
  32. // -->
  33. </script><!---BeginJAVBody---><a href="http://www.yahoo.com" style="color: green; text-decoration: none;
  34. font-family: Verdana, Arial; font-weight: 700" class="link">Yahoo!</a>
  35.  
  36.  
  37.  
  38.  
  39. <a href="http://www.altavista.digital.com" style="color: green;
  40. text-decoration: none; font-family: Verdana, Arial; font-weight: 700"
  41. class="link">Altavista</a>
  42.  
  43.  
  44.  
  45.  
  46. <a href="http://www.lycos.com" style="color: green; text-decoration: none;
  47. font-family: Verdana, Arial; font-weight: 700" class="link">Lycos</a>
  48.  
  49.  
  50.  
  51.  
  52. <a href="http://www.infoseek.com" style="color: green; text-decoration:
  53. none; font-family: Verdana, Arial; font-weight: 700"
  54. class="link">Infoseek</a><!--EndJAVBody-->
  55.