复制代码代码如下 :
함수 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 = "水瓶座";}
if (month == 1 && date> 31) {value = "huh?";}
if (Month == 2 && date> = 19 || Month == 3 && date <= 20) {value = "双鱼座";}
if (Month == 2 && date> 29) {value = "뭐라고 하시나요?";}
if (Month == 3 && date> = 21 || month == 4 && date <= 19) {value = "白羊座";}
if (Month == 3 && date> 31) {value = "Ok. 뭐든지";}
if (Month == 4 && date> = 20 || month == 5 && date <= 20) {value = "金牛座";}
if (Month == 4 && date> 30) {value = "나는 soooo 죄송합니다!";}
if (Month == 5 && date> = 21 || month == 6 && date <= 21) {value = "双子座";}
if (Month == 5 && date> 31) {value = "umm ... no.";}
if (Month == 6 && date> = 22 || month == 7 && date <= 22) {value = "巨蟹座";}
if (Month == 6 && date> 30) {value = "죄송합니다.";}
if (Month == 7 && date> = 23 || Month == 8 && date <= 22) {value = "狮子座";}
if (Month == 7 && date> 31) {value = "실례합니다?";}
if (Month == 8 && date> = 23 || month == 9 && date <= 22) {value = "室女座";}
if (Month == 8 && date> 31) {value = "yeah. right.";}
if (Month == 9 && date> = 23 || Month == 10 && date <= 22) {value = "天秤座";}
if (Month == 9 && date> 30) {value = "다시 시도하십시오.";}
if (Month == 10 && date> = 23 || month == 11 && date <= 21) {value = "天蝎座";}
if (month == 10 && date> 31) {value = "잊어 버려!";}
if (Month == 11 && date> = 22 || month == 12 && date <= 21) {value = "人马座";}
if (Month == 11 && date> 30) {value = "invalid date";}
if (Month == 12 && date> = 22 || month == 1 && date <= 19) {value = "摩羯座";}
if (Month == 12 && date> 31) {value = "No Way!";}
}
}