复制代码代码如下:
関数xingzuo(){
var start = 1901、dature = document.getElementById( "txtday")。value、month = document.getElementById( "txtmonth")。value ;;
with(document.getElementById( "txtxz")){
if(month == 1 && date> = 20 ||月== 2 && date <= 18){value = "水瓶座";}
if(month == 1 && date> 31){value = "huh?";}
if(month == 2 && date> = 19 ||月== 3 && date <= 20){value = "双鱼座";}
if(month == 2 && date> 29){value = "say what?";}
if(month == 3 && date> = 21 ||月== 4 && date <= 19){value = "白羊座";}
if(month == 3 && date> 31){value = "ok。nhight。";}
if(month == 4 && date> = 20 ||月== 5 && date <= 20){value = "金牛座";}
if(month == 4 && date> 30){value = "私はすみません!";}
if(month == 5 && date> = 21 ||月== 6 && date <= 21){value = "双子座";}
if(month == 5 && date> 31){value = "umm ... no。";}
if(month == 6 && date> = 22 ||月== 7 && date <= 22){value = "巨蟹座";}
if(month == 6 && date> 30){value = "nors。";}
if(month == 7 && date> = 23 ||月== 8 && date <= 22){value = "狮子座";}
if(month == 7 && date> 31){value = "すみません?";}
if(month == 8 && date> = 23 ||月== 9 && date <= 22){value = "室女座";}
if(month == 8 && date> 31){value = "ええ。右。";}
if(month == 9 && date> = 23 ||月== 10 && date <= 22){value = "天秤座";}
if(month == 9 && date> 30){value = "再試行してください。";}
if(month == 10 && date> = 23 ||月== 11 && date <= 21){value = "天蝎座";}
if(month == 10 && date> 31){value = "forget it!";}
if(month == 11 && date> = 22 ||月== 12 && date <= 21){value = "人马座";}
if(month == 11 && date> 30){value = "無効な日付";}
if(month == 12 && date> = 22 ||月== 1 && date <= 19){value = "摩羯座";}
if(month == 12 && date> 31){value = "no way!";}
}
}