I am currently working on some code to try and make an ad banner they rotates through all the images in my banner folder. I know I can make a banner which rotates if I state every image in the Array, but what I am wanting to do is create a banner that uses all the images inside the folder so I do not have to go back and recode every time a new image is uploaded to the banner folder. The banner images do not need to have a url assigned as they are only for display at this stage. I am trying to get the banner to display inside this div:
<div id="banner" name="RotateBanner"><img src="Images/banner/1.jpg" /></div>
Can anyone please provide me with a way for me to do this? Is this even possible?