Problem with landing page

Niko Bellic

Junior Member
Joined
Oct 20, 2016
Messages
121
Reaction score
14
Dear BH members,

I new on CPA work, I have a problem with my landing page, so I download landing page and I want to replace CPA javascript locker code, but after I paste the code and I upload, I get the contentlocker immediately, how to assign the locker to any button ? (sorry my bad english)

thanks
 
Dear BH members,

I new on CPA work, I have a problem with my landing page, so I download landing page and I want to replace CPA javascript locker code, but after I paste the code and I upload, I get the contentlocker immediately, how to assign the locker to any button ? (sorry my bad english)

thanks

Create a function of the script and add an onClick() event to the button.

https://www.w3schools.com/jsref/event_onclick.asp
 
Do you know javaScript? is this a page that you made your self?
 
This is an completed landing page, all buttons etc. finished, but I don't understand why I get the locker immediately after I visit the site, please tell me.

It's because the JavaScript starts on page load. If you want help you need to post the JavaScript from your site here.

Find this part in your HTML-file:

<script type="text/javascript">
[…]
</script>

Need the content to be able to help you...
 
Do you know javaScript? is this a page that you made your self?
I did not know javascript, I download this website and I want to replace the locker for mine.
 
It's because the JavaScript starts on page load. If you want help you need to post the JavaScript from your site here.

Find this part in your HTML-file:

<script type="text/javascript">
[…]
</script>

Need the content to be able to help you...
I replaced this to for my content locker, but didn't work !
 
It's because the JavaScript starts on page load. If you want help you need to post the JavaScript from your site here.

Find this part in your HTML-file:

<script type="text/javascript">
[…]
</script>

Need the content to be able to help you...

Check the line, this is correct, but didn't work :/
 

Attachments

  • pubgggggggg.png
    pubgggggggg.png
    33.4 KB · Views: 14
Check the line, this is correct, but didn't work :/

Okay, I'm back and not on my phone anymore...

Let's say this is the button you want to add the 'content locker' to or whatever:

<button id="name">This is a button</button>

You will have this line somewhere in your HTML-file between the body tags (usually with some more details in between).
Add the onClick() event so it looks like this:

<button id="name" onclick="ContentLocker()">This is a button</button>

Now, you should add something like this almost in the end of the HTML-script before the end of the body.

<script type="text/javascript">
setTimeout(
function ContentLocker(){
var myLink = document.getElementById('name');
myLink.onclick = function(){
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "place_your_link_here";
document.getElementsByTagName("head")[0].appendChild(script);
return false;
}, 3000);
</script>

I haven't tried it and I'm not 100% sure what you are using or what script there is one the other end of the link.
 
Last edited:
The above is wrong, did a mistake. Correction:

<script>
function ContentLocker(){
setTimeout(function() {
var myLink = document.getElementById('name');
myLink.onclick = function(){
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "place_your_link_here";
document.getElementsByTagName("head")[0].appendChild(script);
return false;
}, 3000);
}
}
</script>

The "3000" above stands for 3 seconds, i.e. the content locker will appear 3 seconds after the person click on the button. Change it to "0" if you do not want any delay or remove the timeout function altogether...

Either way, if you don't even know the basics in JavaScript maybe you should ask somebody to do this for you. Maybe the smartest is to just send a message to the people (or your affiliate) and ask them to help you.
 
The above is wrong, did a mistake. Correction:

<script>
function ContentLocker(){
setTimeout(function() {
var myLink = document.getElementById('name');
myLink.onclick = function(){
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "place_your_link_here";
document.getElementsByTagName("head")[0].appendChild(script);
return false;
}, 3000);
}
}
</script>

The "3000" above stands for 3 seconds, i.e. the content locker will appear 3 seconds after the person click on the button. Change it to "0" if you do not want any delay or remove the timeout function altogether...

Either way, if you don't even know the basics in JavaScript maybe you should ask somebody to do this for you. Maybe the smartest is to just send a message to the people (or your affiliate) and ask them to help you.


Many many thanks, now works !!!
 
is this a page that you made your self?

Clearly you're just posting crap to inflate your post count.
The OP already stated; "so I download landing page and I want to replace CPA javascript locker code"

I have better things to do with my time - persist and you will receive a ban !
 
Back
Top