Thread View: pl.comp.lang.javascript
2 messages
2 total messages
Started by konsul41
Mon, 29 Jul 2013 09:34
Jak wykryć odświeżenie captcha
Author: konsul41
Date: Mon, 29 Jul 2013 09:34
Date: Mon, 29 Jul 2013 09:34
21 lines
1619 bytes
1619 bytes
jest sobie skrypt
...
<script language="JavaScript">
...
function GetNewChallenge() {
document.getElementById('captchaImg').src =
'Captcha/Captcha.ashx?ms=' + Math.random();
}
...
</script>
...
<a id="aRefreshCaptcha" href="javascript:GetNewChallenge();">
<img id="imgRefreshCaptcha"
src="images\captcha_refresh.gif" border="0">
</a>
...
jak wykryć zakończenie ładowania obrazka po kliknięciu w link
aRefreshCaptcha?
Nie jest wywoływane onLoad.
Re: Jak wykryć odświeżenie captcha
Author: konsul41
Date: Tue, 30 Jul 2013 11:58
Date: Tue, 30 Jul 2013 11:58
36 lines
2141 bytes
2141 bytes
W dniu 29-07-2013 11:34, konsul41@wp.pl pisze:
> jest sobie skrypt
>
> ...
> <script language="JavaScript">
> ...
> function GetNewChallenge() {
> document.getElementById('captchaImg').src =
> 'Captcha/Captcha.ashx?ms=' + Math.random();
> }
> ...
> </script>
> ...
> <a id="aRefreshCaptcha" href="javascript:GetNewChallenge();">
> <img id="imgRefreshCaptcha"
> src="images\captcha_refresh.gif" border="0">
> </a>
> ...
> jak wykryć zakończenie ładowania obrazka po kliknięciu w link
> aRefreshCaptcha?
>
> Nie jest wywoływane onLoad.
function getImage(url) {
var image1 = document.createElement(''img'');
image1.onload = function()
{
document.getElementById(''captchaImg'').src=image1.src;
document.getElementById(''efekt'').value=image1.src;
efekt.fireEvent("onrowenter");
};
image1.src = url;
}
function GetNewChallenge2() {
getImage(''Captcha/Captcha.ashx?ms='' + Math.random());
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads