Copy Code code as follows:
function Xingzuo () {
var start = 1901, Date=document.getelementbyid ("Txtday"). Value, Month=document.getelementbyid ("Txtmonth"). value;;
With (document.getElementById ("Txtxz")) {
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! ';}
}
}