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


Possibly Related Threads...
Thread Author Replies Views Last Post
  Where should I put <script> tags in HTML? Pirata 5 176 2017-12-03, 11:38 AM
Last Post: Pirata
  How can I make a Mediafire content locker ? TheSillyHat 4 181 2017-12-02, 12:56 AM
Last Post: lizha11
  refer locker cpa grip CONNOR_JAMES 0 87 2017-11-23, 09:11 AM
Last Post: CONNOR_JAMES
  Which CPA network offers the best content locker (gateway)? Young Earner 7 389 2017-11-17, 08:55 PM
Last Post: sudipda
  Please tell me Network name for this Content locker TrailBlazer 1 147 2017-11-11, 10:25 PM
Last Post: DEADZ





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

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