PHP expert |
|
function reloadCaptcha(hash) {
document.getElementById('....').removeEventListener('click' , reloadCaptcha(?= rand(0, 5000); ?>) , false);
var captchaImage = document.getElementById('captcha').src;
document.getElementById('captcha').src = './template/images/icons/ajax-loader.gif'
setTimeout(function() {
document.getElementById('captcha').src = captchaImage + '?hash=' + hash
}, 1000);
document.getElementById('....').addEventListener('click' , reloadCaptcha(?= rand(0, 5000); ?>) , false);
}
document.getElementById('....').addEventListener('click' , reloadCaptcha(?= rand(0, 5000); ?>) , false);
function reloadCaptcha(hash) { document.getElementById('....').removeEventListener('click' , reloadCaptcha(?= rand(0, 5000); ?>) , false); var captchaImage = document.getElementById('captcha').src; document.getElementById('captcha').src = './template/images/icons/ajax-loader.gif' setTimeout(function() { document.getElementById('captcha').src = captchaImage + '?hash=' + hash }, 1000); document.getElementById('....').addEventListener('click' , reloadCaptcha(?= rand(0, 5000); ?>) , false); } document.getElementById('....').addEventListener('click' , reloadCaptcha(?= rand(0, 5000); ?>) , false);
Zoiets moet het zijn. |