[thelist] Need help with JavaScript error

Amy Johnson amy at rocky-hills.com
Wed Sep 29 23:58:09 CDT 2004


Hi all.  I get an error (networking1 is undefined) with one of my
websites in the JavaScript area.  I don't know much about JavaScript and
was wondering if someone could aid me in getting rid of this error.  The
error occurs in the function Chng.

http://www.rocky-hills.com/sample/mcneil-nm/networking.shtml

Thanks for any help!
Amy
================================

<SCRIPT language="JavaScript" type="text/javascript"><!--
  window.onerror=null; // Generic Error Trapping
  function LoadImg(){
    if(document.images){ // Checks for handling of MouseOver images.
      var i="images/";
      overview0=new Image(177,25); overview0.src=i+"overview0.gif";
      overview1=new Image(177,25); overview1.src=i+"overview1.gif";
      benefits0=new Image(146,25); benefits0.src=i+"benefits0.gif";
      benefits1=new Image(146,25); benefits1.src=i+"benefits1.gif";
      technologies0=new Image(120,25);
technologies0.src=i+"technologies0.gif";
      technologies1=new Image(120,25);
technologies1.src=i+"technologies1.gif";
      projects0=new Image(112,25); projects0.src=i+"projects0.gif";
      projects1=new Image(112,25); projects1.src=i+"projects1.gif";
      resources0=new Image(192,25); resources0.src=i+"resources0.gif";
      resources1=new Image(192,25); resources1.src=i+"resources1.gif";
      networking0=new Image(112,25);
networking0.src=i+"networking0.gif";
      networking1=new Image(112,25);
networking1.src=i+"networking1.gif";
      contacts0=new Image(154,25); contacts0.src=i+"contacts0.gif";
      contacts1=new Image(154,25); contacts1.src=i+"contacts1.gif";
      funding0=new Image(193,25); funding0.src=i+"funding0.gif";
      funding1=new Image(193,25); funding1.src=i+"funding1.gif";
      policy0=new Image(107,25); policy0.src=i+"policy0.gif";
      policy1=new Image(107,25); policy1.src=i+"policy1.gif";
      links0=new Image(63,25); links0.src=i+"links0.gif";
      links1=new Image(63,25); links1.src=i+"links1.gif";
      contactus0=new Image(105,25); contactus0.src=i+"contactus0.gif";
      contactus1=new Image(105,25); contactus1.src=i+"contactus1.gif";
      home0=new Image(69,25); home0.src=i+"home0.gif";
      home1=new Image(69,25); home1.src=i+"home1.gif";
    }
  }
  function Chng(Pct,type){
   if(document.images){document[Pct].src=eval(Pct+type+".src");}
  }// --></SCRIPT>




More information about the thelist mailing list