Need help with CPAGRIP locker script
2015-04-03, 05:03 AM,
#1
Hi guys.

Im about to make a really simple jquery script with the cpagrip content locker. Its my first time, so I struggle a little. I have enabled the onClick method on the locker, but I dont wanna use it on a image like this example: <img style="cursor:pointer;" src="button_image.png" onclick="call_locker();">

I wanna execute some other stuff before it opens. Just like a h@ck tool. So i thought I should make it like this:

Code:
<img id="click" src="https://i.imgur.com/uG25M0N.png">
    <script type="text/javascript">
    $(document).ready(function(){
        $('#click').click('call_locker')
    });
    </script>

Turns it it doesnt work. I thought I just could call the - call_locker method on the onClick. Im hoping someone could help me with this issue :)
Reply
Share This Thread :
2015-04-03, 05:27 AM, (This post was last modified: 2015-04-03, 05:27 AM by Vinz77.)
#2
I'm not a killer in javascript, but you don't create the call_locker function any where, is it normal ???

Maybe you have to create first your function call_locker no ?

Code:
function call_locker(){
    call_locker();
}
Reply
2015-04-03, 05:46 AM, (This post was last modified: 2015-04-03, 06:03 AM by Henta24.)
#3
(2015-04-03, 05:27 AM)Vinz77 Wrote: I'm not a killer in javascript, but you don't create the call_locker function any where, is it normal ???

Maybe you have to create first your function call_locker no ?

Code:
function call_locker(){
    call_locker();
}

I didn't work. But again. The call_locker(); is default by CPAgrip like my example above? Thats directly from CPAGRIP's onclick example.

I tried with:

Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style/style.css">
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="https://filebehind.com/script_include.php?id=244944"></script>
<title>Test</title>
</head>

<body>
    <img id="click" src="https://i.imgur.com/uG25M0N.png">
    <script type="text/javascript">
    $(document).ready(function(){
        $('#click').click('call_locker')

        function call_locker(){
            call_locker();
        }
    });
    </script>
</body>
</html>

[/code]

Alright.
I just tried to execute the: call_locker() with no function at all and it works. So it must be my click function thats something about i guess. Hmmmm

I got it working. Just wrong DOM, by bad... Im new to JQ xD

Code:
<img id="click" src="https://i.imgur.com/uG25M0N.png">
    <script type="text/javascript">
    $(document).ready(function(){
        $('#click').click(function(){
            call_locker();
        });
    });
    </script>
Reply
2015-04-03, 01:27 PM,
#4
Nice, ir will help me to ;)
Reply
2015-04-03, 06:32 PM,
#5
(2015-04-03, 01:27 PM)Vinz77 Wrote: Nice, ir will help me to ;)
Your welcome mate :)
Reply


Related Threads
Thread Author Replies Views Last Post
  REQ Movie affiliate CPA Php script mineshparikh 2 109 2018-02-16, 01:11 AM
Last Post: Kjartansson
  [ASK] Movie Streaming Website Script sonpink 19 4,368 2018-02-15, 05:21 PM
Last Post: mineshparikh
  Script Facebook daavin 4 224 2018-02-08, 11:29 PM
Last Post: faithalo
  How to put HTML landing page script in blogger walterzingo 4 211 2018-02-03, 06:55 PM
Last Post: umberblue
  "does this tool work" script? how to use this on my site?? dipak777 9 331 2018-01-26, 01:08 AM
Last Post: dipak777





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top