Re: js simple array help

by "Steve Mount" <steve(at)saltyrain.com>

 Date:  Fri, 18 Feb 2000 15:54:14 -0500
 To:  "Rick Reumann" <rick_reumann(at)coxtarget.com>,
"hwg" <hwg-techniques(at)hwg.org>
 References:  coxtarget
  todo: View Thread, Original
Take the "int" out of the for loop.  This is JavaScript, not C++ :)

-------------------------------------------------------------
Steve Mount, Software Engineer            steve(at)saltyrain.com
Home Site                            http://www.saltyrain.com
US Constitution Online          http://www.usconstitution.net
UVM Class of 1989 Home Page     http://www.saltyrain.com/uvm/
Manager, HWG Logo Team                     http://www.hwg.org

----- Original Message ----- 
From: "Rick Reumann" <rick_reumann(at)coxtarget.com>
To: "hwg" <hwg-techniques(at)hwg.org>
Sent: Friday, February 18, 2000 1:04 PM
Subject: js simple array help


> trying to debug this code of mine and when running this test i can't
> even get this  simple thing to run...any ideas why this doesn't work?
> 
> <html>
> <head>
>  <title>Untitled</title>
> <script>
> 
> function changeImage(status)
> {
> 
>  if (status == "over")
>    {
>   var page = new Array("home","species","contact","rates");
>   for (int i=0;i<4;i++)
>   {
>         alert(page[i]);
>    }
>  }
> 
>  }
> </script>
> </head>
> <body>
> <a href="javascript:void(0)" onClick="changeImage('over')">test</a><br>
> 
> </body>
> </html>
> 
> 

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA