Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/08/2009, 00:30
jeus16
 
Fecha de Ingreso: julio-2008
Ubicación: Venezuela - Edo. Zulia.
Mensajes: 22
Antigüedad: 15 años, 10 meses
Puntos: 1
Respuesta: [Ayuda]Refrscar imagen de verificacion(Captcha)

Me fije que pedía ayuda de como actualizar un Captcha, el código obvio lo saco de Muweb 0.9 :P

el codigo que el dejo fue este....
Código PHP:
No ves bien la imagen?<br>Genera una nueva imagen
<a href="javascript:refresh_image("sys_/plugins/image_register_verify.php");">AQUI</a>
</
tr>
</
table>
</
td>
<
td>
<
img src="sys_/plugins/image_register_verify.php" name="image_verify" id="image_verify"></td
y decia que no sabia porque no le funcionaba.. y obvio a esto le faltaba la función que hace que recargue el Captcha.

esta es la función que esta dentro de la sys_/js/MuWeb_Config.js:

Código:
   function refresh_image(image){
	tmp = new Date();
	tmp = "?"+tmp.getTime() 
	document.images["image_verify"].src = image+tmp

ahora para hacerlo funcionar es asi:


Código HTML:
<html>


<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
 <SCRIPT language="JavaScript" type="text/javascript"> 
      <!-- 
    function refresh_image(image){
	tmp = new Date();
	tmp = "?"+tmp.getTime() 
	document.images["image_verify"].src = image+tmp 
}
      // --> 
      </SCRIPT> 


<body>
<td colspan="2"><div align="left"><b><font color="#ff9900">Eres una persona o un robot?</font></b><br>Introducir letras y números a continuación. </div>
<div align="left">No se puede leer las letras y los números a continuación? <span class="register_link"><a href="javascript:refresh_image('sys_/plugins/Secure_Image.phpl');">Refrescar aquí!</a></span></div></td> 
  </tr> 
  <tr> 
    <td colspan="2"><img src="sys_/plugins/Secure_Image.php" name="image_verify" id="image_verify"></td> 
  </tr>
</body>

</html> 
Asi es que =Master= de muweb.org hace la recarga para el Captcha de su web.



Espero a ver ayudado... suerte!