Does anybody know how to modify the AdBrite code so that clicks result in a new browser window opening? I asked this question to AdBrite support and they told me that it can be done by modifying the code, but they won't tell me how. They said that they only provide support for the code as-is. So, basically, it is up to me to find out elsewhere. Does anybody know how to do it? Thanks in advance!
Hi, iknowalittlebit, This is how the adbrite code is given. It opens in the same window <!-- Begin: AdBrite --> <style type="text/css"> .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #56118E;} .adText {font: normal 10pt Arial; text-decoration: none; color: #808080;} </style> <script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=313542&br=1&dk=776f726b20617420686f6d655f365f315f776562"> </script> <div><a class="adHeadline" target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=313542&afsid=1">Your Ad Here</a></div> <!-- End: AdBrite --> Code (markup): Here is the code as it should be, to open in a new window <!-- Begin: AdBrite --> <style type="text/css"> .adHeadline {font: bold 10pt Arial; text-decoration: underline; color: #56118E;} .adText {font: normal 10pt Arial; text-decoration: none; color: #808080;} </style> <script type="text/javascript" src="http://ads.adbrite.com/mb/text_group.php?sid=313542&br=1&dk=776f726b20617420686f6d655f365f315f776562" target="_blank"> </script> <div><a class="adHeadline" target="_blank" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=313542&afsid=1">Your Ad Here</a></div> <!-- End: AdBrite --> Code (markup): All you are doing is specifying that the URL should target a blank window, rather than the one currently in use. Note that the 'adHeadline' has already been specified to open in a 'top' window. This simply takes over the same window and will jump out of a frame, if it was contained in one. So here we have changed "_top" to "_blank". In this code
It is okay with their TOS? I was wondering the same thing about Adsense as I feel it "steals" traffic from my site and evidently it is against TOS.
<a class="adHeadline" target="_blank" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=313542&afsid=1">Your Ad Here</a> Code (markup): New window is opened if users click on "Your Ad Here" only.
yes you are right, the ads open still in the same window, does anybody know a way to display ads from adbrite in a new window ?
You could do it with javascript - (look up new window in javascript resources online) but very fiddly.
is it allowed by the TOS? i know adsense doesn;t allow any modification of their codes and was thinking it would be similar policy for adbrite as well. anyone can confirm?