well you just need to wrap your echo'ed <img> tag in an anchor tag. Do you know where it is linking? is each link separate? Where are you getting the link from?
well you just need to wrap your echo'ed <img> tag in an anchor tag. Do you know where it is linking? is each link separate? Where are you getting the link from?
Yeh each link will be separate. At the moment there is just 3 links/images, two will go to 2 different domains and one wil link to a page on my site.
Ive done something like these http://css-tricks.com/random-ad-positions/ examples on my site but i don't know how to make the images into links ?
As you can tell i don't know much about PHP :o
Thanks
Hi Rob....thanks for the quick reply....again :D
Ive gone for the second method so this is my code
<?php
$totalImages = 3;
$all = range(1,$totalImages);
shuffle($all);
foreach ($all as $single) {
echo "<img src='http://link/ad-$single.jpg' alt='ad' /> ";
}
?>
So do you know how i would apply it to this method ?
Thanks again
Yeh each link will be separate. At the moment there is just 3 links/images, two will go to 2 different domains and one wil link to a page on my site.