Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/09/2013, 13:23
falkon765
 
Fecha de Ingreso: noviembre-2012
Mensajes: 139
Antigüedad: 11 años, 6 meses
Puntos: 1
escript que es un chaptcha

encontre el sigiente script que es un captcha numerico
e intentado cambiarle la funciones que tiene para que enves de que me salga true o false me rediriga a otra pagina
ayuda porfavor
gracias

Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" >
  3. <head>
  4.     <title>BotBoot</title>
  5.    
  6.     <script type="text/javascript">
  7.     var a = Math.ceil(Math.random() * 10);
  8.     var b = Math.ceil(Math.random() * 10);      
  9.     var c = a + b
  10.     function DrawBotBoot()
  11.     {
  12.         document.write("What is "+ a + " + " + b +"? ");
  13.         document.write("<input id='BotBootInput' type='text' maxlength='2' size='2'/>");
  14.     }    
  15.     function ValidBotBoot(){
  16.         var d = document.getElementById('BotBootInput').value;
  17.         if (d == c) return true;        
  18.         return false;
  19.        
  20.     }
  21.     </script>
  22.  
  23.    
  24.    
  25.    
  26. </head>
  27. <body>
  28.  
  29. Are you human?<br />
  30.  
  31. <script type="text/javascript">DrawBotBoot()</script>
  32. <input id="Button1" type="button" value="Check" onclick="alert(ValidBotBoot());"/>
  33.  
  34.  
  35.  
  36.  
  37.  
  38. </body>
  39. </html>