Hi
I want to display a random image on a site of mine hosted at HostGator each time the page refreshes.
I want it to be done via an external php script, as I have html pages. The image will be different each time the page refreshes - selected at random, or nearly enough random, from a separate text file.
In the text file, each images will have a different url associalted with it, for tracking purposes. Also I will want to align the image and set its size from this file. So I expect the code in the text file could be like this:
<a title="Digestion Free Ebook" href="http://trackingurl/[login to view URL]" target="_blank"><img style="WIDTH: 265px; HEIGHT: 203px" title="Free Digestion Ebook" border="0" hspace="5" alt="Free Digestion Ebook" align="left" src="images/[login to view URL]"></a>
(All on one line)
I want to be able to have 2, 3, 4, 5, 6, 7, 8 images in the text file without having to change any parameters elsewhere in the page or the php script - I just want to be able to drop the images in the folder.
I have tried several free scripts and cannot get them to work. I will let you have the urls to the code and maybe you can get it to work for me! Or write your own if you prefer.
Malc