1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPA active button after visitor finish the offers

Discussion in 'HTML & JavaScript' started by bugeast, Mar 16, 2016.

Tags:
  1. bugeast

    bugeast Junior Member

    Joined:
    Aug 21, 2015
    Messages:
    145
    Likes Received:
    16
    hii everyone. I need help and advice from yo
    I got a problem to send visitor to download the file after finish the offers from CPAgrip

    I have to put this script in head
    default to lock button and call offers I use this code
    so after visitor finish the offers, I want to visitor can click the Button, no call offers popup again, and send them to link download.

    is this code can work for it without edit CPAgrip script in HEAD?
    I cant try to test this script because I will get ban if finish the offers by self


    Thank you for your advice.
     
  2. bugeast

    bugeast Junior Member

    Joined:
    Aug 21, 2015
    Messages:
    145
    Likes Received:
    16
    there is still no answer for this
     
  3. ab320012

    ab320012 Newbie

    Joined:
    Mar 20, 2016
    Messages:
    8
    Likes Received:
    0
    Hi bugeast, i am a bit confused as to what you want. if you want to unlock the button after a certain event and the onclick attribute is what locks the button you can set the attribute to empty string with .setAttribute('onclick', '') after a certain user action. Please DM me with more specifics if this does not help enough.
     
  4. ab320012

    ab320012 Newbie

    Joined:
    Mar 20, 2016
    Messages:
    8
    Likes Received:
    0
    Hi bugeast, I saw your pm unfortunately I can't send one back yet.

    set an ID to your anchor tag like so:

    Code:
     [COLOR=#FFFFCC][FONT=Tahoma][I]<a href="#" id="popupcaller" onclick="call_locker()" ><img border="0" src=" /></a>[/I][/FONT][/COLOR]
    in your last offers form submit function call this function

    Code:
    document.getElementById('popupcaller').setAttribute('onclick', ''); 
    Hope this is more clear.