Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. </head>
  7. <body>
  8. <SCRIPT LANGUAGE = "JavaScript">
  9. <!-- Ukrycie przed przeglądarkami nieobsługującymi JavaScript
  10. var imie;
  11. var nazwisko;
  12. var wiek;
  13. imie = prompt ("Podaj swoje imię:", "");
  14. if (imie == null) {
  15. document.write ("Nie podales wieku, wiec strona nie zadziala!");
  16. return;
  17. }
  18.  
  19. nazwisko = prompt ("Podaj swoje nazwisko:", "");
  20. if (nazwisko == null) {
  21. document.write ("Nie podales wieku, wiec strona nie zadziala!");
  22. return;
  23. }
  24.  
  25. wiek = prompt ("Podaj swój wiek:", "");
  26. if (wiek == null) {
  27. document.write ("Nie podales wieku, wiec strona nie zadziala!");
  28. return;
  29. }
  30. document.write ("<br>Imię " + imie);
  31. document.write ("<br>Nazwisko " + nazwisko);
  32. document.write ("<br>Wiek " + wiek);
  33. document.write ("<br>Za pięć sekund wybierzemy Ci stronę!");
  34.  
  35. setTimeout(function(){
  36. var strona;
  37. if(wiek < 5)
  38. {
  39. strona = "http://dladzieci.pl/gry.html?ticaid=613d9e";
  40. }
  41. else if(wiek < 17)
  42. {
  43. strona = "http://www.wyspagier.pl/";
  44. }
  45. else if(wiek < 25)
  46. {
  47. strona = "http://www.pwsz.nysa.pl";
  48. }
  49. else
  50. {
  51. strona = "http://www.mojaemerytura.zus.pl/";
  52. }
  53. }, 5000);
  54.  
  55. // Koniec kodu JavaScript -->
  56. </SCRIPT>
  57.  
  58. </body>
  59. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement