Hi all...
Could anyone help me with this script? im trying to get the images to rotate and be clickable to a predefined URL.. Any help would be greatly appreciated. thx
$imagevar=rand(1, 2); if($imagevar==1) { print "<img src='/images/logo2.jpg'>"; } else if($imagevar==2) { print "<img src='/images/test.jpg'>"; }
Hi artizan,
What actually is the problem?
At the moment, you are randomly selecting from {1, 2}, which is not the same as 'rotating' ... is that it?
Paul.
If so, search the board for "rotate" or "image rotate" or "image rotation" and so on. There have been at least a handful of threads before.
Thanks I have sorted it now... I wanted to randomly pick and image, and wrap it in a link, but ive gone down another route...
Cheers for taking the time
Art