I have this script that automatically loads a number of images without all the coding.
<script language="javascript">
var numofimages = 10
for (x=1; x<numofimages; x++) {
document.write("<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"+x+".jpg hspace=10>")}
</SCRIPT>
Here's my stupid question: what do I name my image(s)? I just have no idea and I've tried everything I could think of.
Another question: the script is set to display 10 images. How do I change it so that it displays all the images in my images directory? So when I upload a new image to the images dir, it will automatically display without having to change the "var numofimages" line.
Thanks in adv!!
<script language="javascript">
var numofimages = 10
for (x=1; x<numofimages; x++) {
document.write("<IMG SRC=http://www.webdeveloper.com/forum/archive/index.php/"+x+".jpg hspace=10>")}
</SCRIPT>
Here's my stupid question: what do I name my image(s)? I just have no idea and I've tried everything I could think of.
Another question: the script is set to display 10 images. How do I change it so that it displays all the images in my images directory? So when I upload a new image to the images dir, it will automatically display without having to change the "var numofimages" line.
Thanks in adv!!