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

Help! onClick setup?

Discussion in 'CPA' started by Earnings, Nov 29, 2011.

  1. Earnings

    Earnings Junior Member

    Joined:
    Apr 28, 2011
    Messages:
    152
    Likes Received:
    29
    Hey peeps,

    I`ve just started content locking an eBook on my Wordpress site. A little confused about content locker setup.

    I`m using Adscendmedia`s content locker, and I used a plugin to apply the locker to a post...

    HOWEVER

    The content locker doesn`t load fast enough, so people just get the guide, and I get nout LOL

    So basically trying to setup onClick on the image download link, so that when they click on it, the content locker is unavoidably in their face.

    Its probably simple, but please help, i`m not great at coding =)

    EDIT: Just used their own link generator, which content locks them through adscendmedia`s site, so they cannot get around it.

    I would still love to know how to do the onClick though!
     
    Last edited: Nov 29, 2011
  2. HugeMoney

    HugeMoney BANNED BANNED

    Joined:
    Jun 27, 2009
    Messages:
    185
    Likes Received:
    38
    i'm looking for the same thing, if u find something pm me :)
     
  3. italy1677

    italy1677 Newbie

    Joined:
    Aug 20, 2011
    Messages:
    18
    Likes Received:
    3
    It's really simple, and adscend has the code for using it as a link on their website.

    The code is
    Code:
    <a href="#" onClick="javascript:initGateway(); return false;">Click here</a>
    
    The only thing you need to edit is the Click here with the text you want the link to have. If you want to specifically edit the style of this link with CSS you can add in the id or class attribute:

    Code:
    <a href="#" id="the-id-would-go-here" onClick="javascript:initGateway(); return false;">Click here</a>
     
  4. Cindy

    Cindy Power Member

    Joined:
    Apr 7, 2008
    Messages:
    632
    Likes Received:
    88
    How do you do this with cpabeyond?
     
  5. YoutubeSlanger

    YoutubeSlanger Junior Member

    Joined:
    Nov 9, 2011
    Messages:
    184
    Likes Received:
    22
    and if the content faster then your content locker put your content on a timer..
     
  6. sapo

    sapo Power Member

    Joined:
    Feb 25, 2008
    Messages:
    510
    Likes Received:
    281
    Yup if you with adscend this should work, and it says right their on their website but you have to change the delay on when the gateway appears to -1