Re: js simple array help
by "Mike Fryer" <mjfryer(at)jps.net>
|
Date: |
Sun, 20 Feb 2000 15:23:06 -0000 |
To: |
"Rick Reumann" <rick_reumann(at)coxtarget.com>, "hwg" <hwg-techniques(at)hwg.org> |
References: |
coxtarget |
|
todo: View
Thread,
Original
|
|
The int should be replaced by var or left out altogether.
----- Original Message -----
From: "Rick Reumann" <rick_reumann(at)coxtarget.com>
To: "hwg" <hwg-techniques(at)hwg.org>
Sent: Friday, February 18, 2000 6: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