I put this in the header to give a random, rotating logo... there is also some adsense thrown in occasionally.
HTML Code:
<div id="header_img">
<?php
$random_text = array('<img src="http://www.erandolph.com/wp-content/erandolph_1.gif" width="970" height="200" alt="East Randolph Street, Chicago" title="East Randolph Street, Chicago" />',
'<img src="http://www.erandolph.com/wp-content/erandolph_2.gif" width="970" height="200" alt="East Randolph Street, Chicago" title="East Randolph Street, Chicago" />',
'<img src="http://www.erandolph.com/wp-content/erandolph_3.gif" width="970" height="200" alt="East Randolph Street, Chicago" title="East Randolph Street, Chicago" />',
'<script type="text/javascript"><!--
google_ad_client = "pub-xxxyourcodexxx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "000000";
google_color_text = "000000";
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>');
srand(time());
$sizeof = count($random_text);
$random = (rand()%$sizeof);
echo $random_text[$random];
?>
</div>
See site: http://www.erandolph.com
hope someone enjoys this!
Eric
Bookmarks