Loading:


Chiński znak zodiaku [Javascript]

Zastanawiałeś się kiedyś jaki jest twój chiński znak zodiaku? Już dłużej nie musisz, wypełnij krotką ankietę i po sprawie :) Skrypt ciekawostka, polecam dla zabawy.



Napisz Artyku³

Listing

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Timothy Joko-Veltman (restlessperegrine@yahoo.com ) -->
<!-- Begin
function signs() {
var start = 1901, birthyear = document.zodiac.year.value, date=document.zodiac.date.value, month=document.zodiac.month.selectedIndex;

with (document.zodiac.sign){

if (month == 1 && date >=20 || month == 2 && date <=18) {value = "Wodnik";}
if (month == 1 && date > 31) {value = "Hee?";}
if (month == 2 && date >=19 || month == 3 && date <=20) {value = "Ryby";}
if (month == 2 && date > 29) {value = "Co powiesz?";}
if (month == 3 && date >=21 || month == 4 && date <=19) {value = "Baran";}
if (month == 3 && date > 31) {value = "OK.  Cokolwiek!.";}
if (month == 4 && date >=20 || month == 5 && date <=20) {value = "Byk";}
if (month == 4 && date > 30) {value = "Ale mi przykro!";}
if (month == 5 && date >=21 || month == 6 && date <=21) {value = "Bliźnięta";}
if (month == 5 && date > 31) {value = "Hmm ... nie.";}
if (month == 6 && date >=22 || month == 7 && date <=22) {value = "Rak";}
if (month == 6 && date > 30) {value = "Sorry.";}
if (month == 7 && date >=23 || month == 8 && date <=22) {value = "Lew";}
if (month == 7 && date > 31) {value = "Przepraszam?";}
if (month == 8 && date >=23 || month == 9 && date <=22) {value = "Panna";}
if (month == 8 && date > 31) {value = "Tak.Pewnie!";}
if (month == 9 && date >=23 || month == 10 && date <=22) {value = "Waga";}
if (month == 9 && date > 30) {value = "Jaszcze raz.";}
if (month == 10 && date >=23 || month == 11 && date <=21) {value = "Skorpion";}
if (month == 10 && date > 31) {value = "Zapomnij!";}
if (month == 11 && date >=22 || month == 12 && date <=21) {value = "Strzelec";}
if (month == 11 && date > 30) {value = "Zła data";}
if (month == 12 && date >=22 || month == 1 && date <=19) {value = "Koziorożec";}
if (month == 12 && date > 31) {value = "Niemożliwe!";}
}
x = (start - birthyear) % 12
with (document.zodiac.csign){
if (x == 1 || x == -11) {value = "Szczur";}
if (x == 0) {value = "Bawół";}
if (x == 11 || x == -1) {value = "Tygrys";}
if (x == 10 || x == -2) {value = "Królik";}
if (x == 9 || x == -3)  {value = "Smok";}
if (x == 8 || x == -4)  {value ="Wąż";}
if (x == 7 || x == -5)  {value = "Koń";}
if (x == 6 || x == -6)  {value = "Baran";}
if (x == 5 || x == -7)  {value = "Małpa";}
if (x == 4 || x == -8)  {value = "Kogut";}
if (x == 3 || x == -9)  {value = "Pies";}
if (x == 2 || x == -10)  {value = "Dzik";}  

}
}
//  End -->
</script>

<form name="zodiac">
<center>
<P>Wpisz datę urodzenia.</P>
<table bgcolor="#000099" border="1" bordercolor="#00CCFF" rules="none" cellspacing="0" cellpadding="4">
        <tr><td><STRONG>Rok</STRONG></td>
        <td><div align="right"><input class=pole1 type="text" size="10" name="year" value="" onClick=value=""></div></td>
        <td><!--This empty field is just for appearance--></td>

        <tr><td><STRONG>Miesiąc</STRONG></td>
        <td><div align="right">
<select class=pole1 name="month">
<option value="x">Wybierz miesiąc</option>
<option value="1">Styczen</option><option value="2">Luty</option><option value="3">Marzec</option>
<option value="4">Kwiecien</option><option value="5">Maj</option><option value="6">Czerwiec</option>
<option value="7">Lipiec</option><option value="8">Sierpien</option><option value="9">Wrzesien</option>

<option value="10">Pazdziernik</option><option value="11">Listopad</option>
<option value="12">Grudzien</option></select></div></td>
        <td><!--This empty field is just for appearance--></td></tr>
        <tr><td><STRONG>Dzien</STRONG></td>
        <td><div align="right"><input class=pole1 type="text" name="date"value="" size="3" onClick=value=""></DIV></td>
        <td><input class=button1 type="button" value="Pokaz!" onClick="signs()"></td></tr>
        <tr><td><STRONG>Znak słonca:</STRONG></td>

        <td><div align="right"><input class=pole1 type="text" name="sign" size="12" value="" align="right"></div></td></tr>
        <td><!--This empty field is just for appearance--></td></tr>
        <tr><td><STRONG>Chinski symbol:</STRONG></td>
        <td><div align="right"><input class=pole1 type="text" name="csign" size="12"></div></td>
        <td><!--This empty field is just for appearance--></td></tr>

</table>
</center>
</form>


 




Dodano przez: adam2811 Ranga: 0 Punktów: 0
Komentarze użytkowników
    • Tre¶æ komentarza
      Kod do komentarza (opcjonalnie)
      PHP JavaScript MySQL Smarty SQL HTML CSS ActionScript
      Autor
      Token
      token

       

       








funkcje.net
Wszelkie prawa zastrzeżone©. | Funkcje.net 2008-2024 v.1.5 | design: diviXdesign & rainbowcolors