Algun autoclick en JS

  • Autor Autor Claux
  • Fecha de inicio Fecha de inicio
C

Claux

Delta
Social Media
No recomendado
Hola Betas, estoy buscando algun script para hacer autoclicks para darle a un banner u otra... OBVIAMENTE NO LO USARE PARA ADSENSE...

espero me puedan ayudar.. Muchas gracias
 
muy simple:
HTML:
<a href="google.co.ve">Google</a>
<script>
(function() {
document.querySelector("a").click();
})();
</script>
 
Lo primero que tienes que hacer es agregar jQuery a tu web.

HTML:
<script type="text/javascript" src="http://code.jquery.com/jquery-3.1.1.js"></script>

Si no te funciona intenta con el siguiente:

HTML:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

Ahora solo queda agregar el JS

Insertar CODE, HTML o PHP:
$(document).ready(function(){

  setTimeout(clickbutton,5000); //5 segundos es el tiempo que tardará el script
   
      function clickbutton()
            {

         $("#Click").click();
            }
        });


Ahora solo tendrás que agregar un input con id "Click" como por ejemplo el siguiente:

HTML:
<input type="submit" id="Click" value="success">

Es importante que agregues el input dentro de lo que vas a usar, puedes poner una imagen como banner y le agregas el id="Click"

Checalo y me dices :encouragement:
 

Temas similares

Pr0XiM
Respuestas
0
Visitas
256
Pr0XiM
Pr0XiM
sweepet
Respuestas
4
Visitas
2K
HostLi
H
Atrás
Arriba