LEADBOLT OnClick Widget Load

Discussion in 'Affiliate Programs' started by 1one, Nov 23, 2010.

  1. #1
    If someone interesting how to load Leadbolt widget after clicking button, or link, the code is below:

    <script>
    function StartGateway(id) {
    var head= document.getElementsByTagName('head')[0];
    var script= document.createElement('script');
    script.type= 'text/javascript';
    script.src= 'http://ad.leadbolt.net/show_cu.js?section_id='+id;
    head.appendChild(script);
    }
    </script>



    and in the body:

    <a onClick="javascript:StartGateway(686024070)">click here</a>

    ID is the number from link hxxp://ad.leadbolt.net/show_cu.js?section_id=xxxxxxxxx
     
    1one, Nov 23, 2010 IP
  2. alexgreatcpa

    alexgreatcpa Well-Known Member Affiliate Manager

    Messages:
    1,165
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #2
    great tool .
     
    alexgreatcpa, Nov 24, 2010 IP
  3. chips29

    chips29 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I am having a hard time with the option of launching the unlocker from a button on my website. The script works as it is but as soon as I add the actual URL where people can download the file, the unlocker doesn’t come up, it just sends the surfer directly to the download page. Can you please tell me what I am doing wrong?
     
    chips29, Dec 4, 2010 IP
  4. mtmjohn

    mtmjohn Peon

    Messages:
    1,757
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Awesome script. Thanks for sharing. :)
     
    mtmjohn, Dec 5, 2010 IP
  5. pidge1992

    pidge1992 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I tried this one


    <script>
    function StartGateway(12345) {
    var head= document.getElementsByTagName('head')[0];
    var script= document.createElement('script');
    script.type= 'text/javascript';
    script.src= 'http://ad.leadbolt.net/show_cu.js?section_id=12345';
    head.appendChild(script);
    }
    </script>

    and

    <input type=button onClick="javascript:StartGateway(12345);" value='Click Here'>


    But after clicking the button, survey is not coming up :( (I mean content unlocker)

    Anyone can help me on that point ?

    Waiting for reply.

    Thanks
     
    pidge1992, Jun 2, 2011 IP