Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [javaScript]Proszę o przetłumaczenie kody
sazian
post
Post #1





Grupa: Zarejestrowani
Postów: 1 045
Pomógł: 141
Dołączył: 19.09.2006
Skąd: B-tów

Ostrzeżenie: (0%)
-----


Może mi ktoś powiedzieć jak to działa??

Kod
function actionx() {
        if (document.forms[0].xssl.checked) {
          document.forms[0].action="https://rd.gry.ztpnet.pl/fast-dragon/dragon.cgi?b=login&nocache=806201857&noc2="+Math.ceil(Math.random()*99999);
        } else {
          document.forms[0].action="http://rd.gry.ztpnet.pl/fast-dragon/dragon.cgi?b=login&nocache=806201857&noc2="+Math.ceil(Math.random()*99999);
        }
        document.forms[0].submit();
      };
Go to the top of the page
+Quote Post
batman
post
Post #2





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




Kod
function actionx() {
    // sprawdzenie czy ckeckbox o nazwie xssl jest zaznaczony
    if (document.forms[0].xssl.checked) {
        // jesli tak, to ustaw akcje formularza na adres (z https):
        document.forms[0].action="https://rd.gry.ztpnet.pl/fast-dragon/dragon.cgi?b=login&nocache=806201857&noc2="+Math.ceil(Math.random()*99999);
    } else {
        // jesli nie, to ustaw akcje formularza na adres (bez https):
        document.forms[0].action="http://rd.gry.ztpnet.pl/fast-dragon/dragon.cgi?b=login&nocache=806201857&noc2="+Math.ceil(Math.random()*99999);
    }
    // submituj (wyslij) formularz
    document.forms[0].submit();
};


--------------------
I would love to change the world, but they won't give me the source code.
My software never has bugs. It just develops random features.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 06:56