I have moved my banner space above the tabber and enews so it spans the length of the top and i use and array code like this
PHP Code:
<div class="hpfeatured">
<?php
$images = array("http://pananewsonline.net/wp-content/uploads/2010/04/bad2.jpg", "http://pananewsonline.net/wp-content/uploads/2010/04/bad1.jpg", "http://pananewsonline.net/wp-content/uploads/2010/04/bad3.gif");
$URIs = array("http://www.fnbpana.com", "http://www.bobridingschrysler.com/", "http://www.panahospital.com/");
// Incase you input more values into one array than the other.
if(count($images) < count($URIs)){ $TOTAL = count($images); }
else{ $TOTAL = count($URIs); }
$randomNum = rand(0,$TOTAL-1);
echo '<a href="'.$URIs[$randomNum].'"><img src="'.$images[$randomNum].'" /></a>';
?>
I got it to work on the home page and the pages, but i cant get it to show up on my category pages. I have tried putting the code all over the place to no avail.
thanks for the help,
Wil