Anybody know how to nodify AdBrite code to open in new window?

Discussion in 'General Marketing' started by iknowalittlebit, Feb 20, 2008.

  1. #1
    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!
     
    iknowalittlebit, Feb 20, 2008 IP
  2. solavar

    solavar Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    solavar, Feb 21, 2008 IP
  3. Alonski

    Alonski Active Member

    Messages:
    1,572
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    90
    #3
    generally you add target="_blank" after the src as you can see that solavar has done.
     
    Alonski, Feb 21, 2008 IP
  4. mjmurphy53711

    mjmurphy53711 Well-Known Member

    Messages:
    1,403
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    130
    #4
    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.
     
    mjmurphy53711, Feb 21, 2008 IP
  5. maritime news

    maritime news Guest

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    <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.
     
    maritime news, Apr 7, 2008 IP
  6. markusb

    markusb Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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 ?
     
    markusb, Apr 25, 2008 IP
  7. adnewbie

    adnewbie Peon

    Messages:
    136
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You could do it with javascript - (look up new window in javascript resources online) but very fiddly.
     
    adnewbie, Apr 25, 2008 IP
  8. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #8
    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?
     
    sultanofseo, Apr 25, 2008 IP