[thelist] Need help with JavaScript error
DUCROCQ Yann FT/DSI/SICOR
yann.ducrocq at francetelecom.com
Thu Sep 30 03:15:04 CDT 2004
Hello,
To declare all your variables with the keyword 'var' at the beginning of your script should help.
Yann
> -----Message d'origine-----
> De : thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org]De la part de Amy Johnson
> Envoye : jeudi 30 septembre 2004 06:58
> A : TheList
> Objet : [thelist] Need help with JavaScript error
>
>
> 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>
>
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
More information about the thelist
mailing list