Forum Moderators: open
I'm looking for a rotation script that works similar to the hiveware image rotator in taking a graphic from a directory of images by php and displays the image on an html page using the <img> tag. I'd need each image link to hotlink to an external URL and to display for 24 hours each time.
In other words, a directory of sponsor images sits on a server with a php file (e.g. rotate.php) which randomises the content. On the html page on which I want to display the random image I have an <img> file which uses rotate.php as its source. Whilst the hiveware rotation/listapart script already does this, I need each sponsor image to hotlink to their website and for the rotation interval to be 24 hours.
The php script PHP - DISPLAYER 2.0 meets my requirements for this in a slightly different way but also uses the php echo property to display the result which requires each page to be in php which I don't want. Perhaps I'm searching in the right places but I can't find one on Google/Yahoo which fits the bill.
Any suggestions on a good script?
Cheers
Stephen
[edited by: jatar_k at 3:29 pm (utc) on Mar. 26, 2008]
[edit reason] no urls thanks [/edit]
In my .htaccess file I placed the following:
AddHandler application/x-httpd-php .html .htm
AddType application/x-httpd-php .html .htm
which handles both html and htm file extensions. I had some delay where some coders wrote x-httpd.php instead of x-httpd-php but then bobs your uncle and a really simple way for me to use my existing php script on my server. Fantastic.