Menu
I am trying to write something that gets all the images in a single folder and then puts them into an array so that on my web page they can randomly be up there.
[CODE]
<script type=”text/javascript”>
var myPics = new Array();
myPics[0] = “pics/cup.jpg”;
myPics[1] = “pics/championship.jpg”;
var randomnumber=Math.floor(Math.random()*2)
</script>
As you can see right now I am putting the image names in hard coded but when I give this to the client I would like for them to be able to just upload pictures to the folder without having to go in and change the JS