views:

66

answers:

0

I've used ASP:AdRotator in the past, but only for an image and a link per ad. Simple enough: it chooses a random (weighted) ad, and spits out it's image, alt text and link.

But what if the ad is a script? Is there an easy way to tell it to rotate through scripts AND images? For example:

<script type='text/javascript'><!--
google_ad_client = 'pub-XXXXXXXXXXXXXXXX';
google_ad_slot = 'xxxxxxxxxx';
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'&gt;
</script>

Also, what if the ad is an iframe? I think Amazon affiliate links are iframes.

So end goal: An ad rotator that does image links, scripts, and iframes. Is this built into asp:AdRotator?