Quote:
Originally Posted by basskiller
how would make the banners clickable
IE adding a hyperlink
|
PHP Code:
// ############## Headerimage and text rotating #########
switch(intval(time() / 2) % 3)
{
case 0:
$banner = 'img1.jpg';
$banner_url = 'www.mysite.com';
break;
case 1:
$banner = 'img2.jpg';
$banner_url = 'www.mysite2.com';
break;
case 2:
$banner = 'img3.jpg';
$banner_url = 'www.mysite3.com';
break;
}
Then use this in the template
HTML Code:
<a href="$banner_url"><img src="$banner" border="0" /></a>