Want Ads to open in same page

Discussion in 'Programming' started by samkak, Apr 28, 2010.

  1. #1
    I want the ads to open in the same page,for networks like adbrite and google this isn't an issue,but for other ad networks like right media,bidvertiser or for that matter any ad network that is on CPM(displaying flash ads) the ads open in a new page.

    Their codes are in script form.

    Does anyone know how to modify them to open in the same page?

    This is an example of what the code looks like:-

    <SCRIPT LANGUAGE="JavaScript1.1" SRC="http://bdv.bidvertiser.com/BidVertiser.dbm?pid=xxxxxx&bid=xxxxx" type="text/javascript"></SCRIPT>
    Code (markup):
     
    samkak, Apr 28, 2010 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Not changeable if its set to launch new window via Flash... your only option would be to decompile the Flash ads they use, and change them but I'm positive that is against their TOS.
     
    ccoonen, Apr 28, 2010 IP
  3. samkak

    samkak Active Member

    Messages:
    494
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    This is permitted in their TOS :-

    "Adding a custom query string: insert &YOUR_CUSTOM_QUERY_STRING  at the end of the SRC attribute in the tag above"
    Code (markup):
    I have even seen some ad networks writing such things
    '+rnum+'/'+nf+'RETURN-CODE/JS/">'+ts+' 
    Code (markup):
    at the end of the source link for the javascript.Its allowed.The only problem is i dont know what should i write at the end so that the ads open in the same page.Any ideas?

    I think anybody who knows javascript could help me out.
     
    samkak, Apr 29, 2010 IP