Copy Code code as follows:
<script language= "JavaScript" >
<!--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 >) {value = "Huh?";}
if (month = = 2 && Date >=19 | | month = 3 && date <=20) {value = "Pisces";}
if (month = = 2 && date >) {value = "Say what?";}
if (month = = 3 && Date >=21 | | month = 4 && date <=19) {value = "Aries";}
if (month = = 3 && date >) {value = OK. Whatever. ";}
if (month = = 4 && Date >=20 | | month = 5 && date <=20) {value = "Taurus";}
if (month = = 4 && date >) {value = "I ' m soooo sorry!";}
if (month = = 5 && Date >=21 | | month = 6 && date <=21) {value = "Gemini";}
if (month = = 5 && date >) {value = ' umm ... no ';}
if (month = = 6 && Date >=22 | | month = 7 && date <=22) {value = "cancer";}
if (month = = 6 && date >) {value = "Sorry.";}
if (month = = 7 && Date >=23 | | month = 8 && date <=22) {value = "Leo";}
if (month = = 7 && date >) {value = "excuse me?";}
if (month = = 8 && Date >=23 | | month = 9 && date <=22) {value = "Virgo";}
if (month = = 8 && date >) {value = Yeah. Right. ";}
if (month = = 9 && Date >=23 | | | month = && Date <=22) {value = "Libra";}
if (month = = 9 && date >) {value = ' Try Again. '}
if (month = && Date >=23 | | | month = && Date <=21) {value = "Scorpio";}
if (month = && date >) {value = ' forget it! ';}
if (month = && Date >=22 | | month = = && Date <=21) {value = "Sagittarius";}
if (month = && date >) {value = ' Invalid date ';}
if (month = && Date >=22 | | month = = 1 && date <=19) {value = "Capricorn";}
if (month = && date >) {value = ' No way! ';}
}
x = (start-birthyear)% 12
With (Document.zodiac.csign) {
if (x = = 1 | | | x = = -11) {value = "mouse";}
if (x = = 0) {value = "ox";}
if (x = = One | | x = = 1) {value = "Tiger";}
if (x = = | | x = = 2) {value = "rabbit";}
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 = "chicken";}
if (x = = 3 | | | x = = -9) {value = "dog";}
if (x = = 2 | | | x = = -10) {value = "pig";}
}
}
End-->
</script>
<form name= "Zodiac" >
<center>
<table bgcolor= "#eeaa00" border= "2" bordercolor= "#000000" rules= "None" cellspacing= "0" cellpadding= "4" >
<tr><td><b><i> Year of birth </i></b></td>
<td><div align= "right" ><input type= "text" size= "Name=" Years "value=" Year of Birth "onclick=value=" ">< /div></td>
<td><!--This empty the field is just for appearance--></td>
<tr><td><b><i> Birth Month </i></b></td>
<td><div align= "Right" >
<select name= "Month" >
<option value= "x" > Please select a 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= "Ten" > October </option><option value= "One" > November </option>
<option value= "A" > December </option></select></div></td>
<td><!--This empty the field is just for appearance--></td></tr>
<tr><td><b><i> Day </i></b></td>
<td><div align= "right" ><input type= "text" name= "date" value= "Day" size= "3" onclick=value= "" ></td >
<td><input type= "button" value= "Calculate" onclick= "signs ()" ></div></td></tr>
<tr><td><b><i> Constellation:</i></b></td>
<td><div align= "right" ><input type= "text" name= "sign" size= "" value= "" align= "right" ></div ></td></tr>
<td><!--This empty the field is just for appearance--></td></tr>
<tr><td><b><i> Zodiac:</i></b></td>
<td><div align= "right" ><input type= "text" name= "csign" size= "></div></td>"
<td><!--This empty the field is just for appearance--></td></tr>
</table>
</center>
</form>