Forum Moderators: open
I want to toggle between 468*60 and 760 *90 adbrite banner .
So i was researching on js random functions but couldnt find any apart from random images quotes and banners in js.
nothing specific related to mine
a typical adbrite banner ad code would be like
<!-- Begin: AdBrite -->
<script type="text/javascript">
var AdBrite_Title_Color = '0000FF';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFFFFF';
</script>
<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=413460&zs=3732385f3930" type="text/javascript"></script><!--
--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=413460&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard.gif" style="background-color:#FFFFFF;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: AdBrite --> how will i be able to wrap this around document.write or into a variable and then randomize it.
Iam having no clue on how to go about on it
some one pls help
<script src="http://ads.adbrite.com/mb/text_group.php?sid=413460&zs=3732385f3930" type="text/javascript"></script>
But the problem is that script is generated on adbrite's site, so you can't change it. There doesn't seem to be anything there that specifies the resolution.
I guess the
sid=413460&zs=3732385f3930part is your account number with adbrite, and somewhere within your account is where you set your resolution.
So, you could create another account with a different size banner and then randomise whichever script line you like, but I imagine adbrite will track your domain and won't allow 2 account on the same website.
Sorry I can't be more help, maybe someone else here can provide more information.