<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 = "Aquarius";} if (month == 1 && date > 31) {value = "Huh?";} if (month == 2 && date >=19 || month == 3 && date <=20) {value = "Pisces";} if (month == 2 && date > 29) {value = "Say what?";} if (month == 3 && date >=21 || month == 4 && date <=19) {value = "Aries";} if (month == 3 && date > 31) {value = "OK. Whatever.";} if (month == 4 && date >=20 || month == 5 && date <=20) {value = "Taurus";} if (month == 4 && date > 30) {value = "I'm soooo sorry!";} if (month == 5 && date >=21 || month == 6 && date <=21) {value = "Gemini";} if (month == 5 && date > 31) {value = "Umm ... no.";} if (month == 6 && date >=22 || month == 7 && date <=22) {value = "Cancer";} if (month == 6 && date > 30) {value = "Sorry.";} if (month == 7 && date >=23 || month == 8 && date <=22) {value = "Leo";} if (month == 7 && date > 31) {value = "Excuse me?";} if (month == 8 && date >=23 || month == 9 && date <=22) {value = "Virgo";} if (month == 8 && date > 31) {value = "Yeah. Right.";} if (month == 9 && date >=23 || month == 10 && date <=22) {value = "Libra";} if (month == 9 && date > 30) {value = "Try Again.";} if (month == 10 && date >=23 || month == 11 && date <=21) {value = "Scorpio";} if (month == 10 && date > 31) {value = "Forget it!";} if (month == 11 && date >=22 || month == 12 && date <=21) {value = "Sagittarius";} if (month == 11 && date > 30) {value = "Invalid Date";} if (month == 12 && date >=22 || month == 1 && date <=19) {value = "Capricorn";} if (month == 12 && date > 31) {value = "No way!";} } x = (start - birthyear) % 12 with (document.zodiac.csign){ if (x == 1 || x == -11) {value = "Rat";} if (x == 0) {value = "Ox";} if (x == 11 || x == -1) {value = "Tiger";} if (x == 10 || x == -2) {value = "Rabbit/Cat";} if (x == 9 || x == -3) {value = "Dragon";} if (x == 8 || x == -4) {value ="Snake";} if (x == 7 || x == -5) {value = "Horse";} if (x == 6 || x == -6) {value = "Sheep";} if (x == 5 || x == -7) {value = "Monkey";} if (x == 4 || x == -8) {value = "Cock/Phoenix";} if (x == 3 || x == -9) {value = "Dog";} if (x == 2 || x == -10) {value = "Boar";}
} } // End --> </SCRIPT> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <FORM name=zodiac> <CENTER> <TABLE borderColor=#000000 cellSpacing=0 cellPadding=4 rules=none bgColor=#eeaa00 border=2> <TBODY> <TR> <TD><B><I>Year</I></B></TD> <TD> <DIV align=right><INPUT onclick='value=""' size=10 value="Birth Year" name=year></DIV></TD> <TD><!--This empty field is just for appearance--></TD> <TR> <TD><B><I>Month</I></B></TD> <TD> <DIV align=right><SELECT name=month> <OPTION value=x selected>Select Birth Month</OPTION> <OPTION value=1>January</OPTION><OPTION value=2>February</OPTION><OPTION value=3>March</OPTION> <OPTION value=4>April</OPTION><OPTION value=5>May</OPTION><OPTION value=6>June</OPTION> <OPTION value=7>July</OPTION><OPTION value=8>August</OPTION><OPTION value=9>September</OPTION> <OPTION value=10>October</OPTION><OPTION value=11>November</OPTION> <OPTION value=12>December</OPTION></SELECT></DIV></TD> <TD><!--This empty field is just for appearance--></TD></TR> <TR> <TD><B><I>Day</I></B></TD> <TD> <DIV align=right><INPUT onclick='value=""' size=3 value=Day name=date></DIV></TD> <TD><INPUT onclick=signs() type=button value=Calculate> <DIV></DIV></TD></TR> <TR> <TD><B><I>Sun Sign:</I></B></TD> <TD> <DIV align=right><INPUT align=right size=12 name=sign></DIV< td></DIV></TD> <TD><!--This empty field is just for appearance--></TD></TR> <TR> <TD><B><I>Chinese Sign:</I></B></TD> <TD> <DIV align=right><INPUT size=12 name=csign></DIV></TD> <TD><!--This empty field is just for appearance--></TD></TR></TBODY></TABLE></CENTER></FORM> <P> <CENTER><FONT face="arial, helvetica" size?-2?>Free JavaScripts provided<BR>by <A href="http://javascriptsource.com">The JavaScript Source</A></FONT> </CENTER> <P><!-- Script Size: 5.37 KB --></P> |