This is a simple random image script which is ideal
for displaying basic images from a text file . In future
examples we will expand on this and build some simple
banner rotation systems.
The first step that you need to do is to create your
file for storing your images and then insert the names
of the images.
In the example here I called the file images1.txt .
Each one of the entries is on a seperate line and in
this case because I stored the files in a sub-directory
I inserted that also . the structure of the file was
like this
image/banner1.gif
image/banner2.gif
image/banner3.gif
and so on. Now we get to the script that will display
a random image and again this is straight forward enough.