Web Hosting Talk







View Full Version : Any way to make a script that randomizes between my adsense banner and img banners?


Volconvo
09-16-2005, 08:03 PM
Hello,

I want to randomly display my adwords banner and a banner hosted on my site.

Is there any way to do this?

Here is what the adsense looks like: <script type="text/javascript"><!--
google_ad_client = "pub-9713982568167945";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

and the banner is: http://www.thepartylive.com/banners/BANNER468X60-2.gif


Basically I just want a script, similar to a random image script to alternative between these two and possibly more in the future. Any idea how I can do this?

My site for reference: http://www.volconvo.com

Thank you!

Tyler
09-16-2005, 08:59 PM
Have you ever looked into getting something similar to phpAdsnew (http://phpadsnew.com) before? Great piece of software, but may be a bit too powerful if you just need a barebones script.