Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- </head>
- <body>
- <SCRIPT LANGUAGE = "JavaScript">
- <!-- Ukrycie przed przeglądarkami nieobsługującymi JavaScript
- var imie;
- var nazwisko;
- var wiek;
- imie = prompt ("Podaj swoje imię:", "");
- if (imie == null) {
- document.write ("Nie podales wieku, wiec strona nie zadziala!");
- return;
- }
- nazwisko = prompt ("Podaj swoje nazwisko:", "");
- if (nazwisko == null) {
- document.write ("Nie podales wieku, wiec strona nie zadziala!");
- return;
- }
- wiek = prompt ("Podaj swój wiek:", "");
- if (wiek == null) {
- document.write ("Nie podales wieku, wiec strona nie zadziala!");
- return;
- }
- document.write ("<br>Imię " + imie);
- document.write ("<br>Nazwisko " + nazwisko);
- document.write ("<br>Wiek " + wiek);
- document.write ("<br>Za pięć sekund wybierzemy Ci stronę!");
- setTimeout(function(){
- var strona;
- if(wiek < 5)
- {
- strona = "http://dladzieci.pl/gry.html?ticaid=613d9e";
- }
- else if(wiek < 17)
- {
- strona = "http://www.wyspagier.pl/";
- }
- else if(wiek < 25)
- {
- strona = "http://www.pwsz.nysa.pl";
- }
- else
- {
- strona = "http://www.mojaemerytura.zus.pl/";
- }
- }, 5000);
- // Koniec kodu JavaScript -->
- </SCRIPT>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement