<html> <head> <title>A Simple Page</title> <script language="JavaScript"> <!-- var myarray = new Array("","","","","","","","","",""); for (x in myarray) { myarray[x] = "img" + x + ".gif"; } document.write(myarray); // --> </script> </head> <body> </body> </html>