Hi. I need some help with arrays in JavaScript. I am creating a slideshow and have to store the images in an array on a separate file. I need some feedback as far as am I missing something in this file and how can I then call this array into my slideshow file? So far, I have:
<script type="text/javascript">
// Create an array to hold image filenames
var images = new Array();
// Populate array with image filenames
imgname[0] = 'home.jpg';
imgname[1] = 'beach.jpg';
imgname[2] = 'pool.jpg';
imgname[3] = 'garden.jpg';
imgname[4] = 'pond.jpg';
imgname[5] = 'car.jpg';
</script>