Help! onClick setup?

Earnings

Junior Member
Joined
Apr 28, 2011
Messages
159
Reaction score
31
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:
i'm looking for the same thing, if u find something pm me :)
 
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>
 
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>

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
 
Back
Top