コードをコピー コードは次のとおりです: <br><!-- Begin<BR>function signs() {<BR>var start = 1901, birthyear = document.zodiac.year.value, date=document.zodiac.date.value, month=document.zodiac.month.selectedIndex;</P> <P>with (document.zodiac.sign){</P> <P>if (month == 1 && date >=20 || month == 2 && date <=18) {value = "水瓶座";}<BR>if (month == 1 && date > 31) {value = "Huh?";}<br>if (month == 2 && date >=19 || month == 3 && date <=20) {value = "双鱼座";}<BR>if (month == 2 && date > 29) {value = "Say what?";}<br>if (month == 3 && date >=21 || month == 4 && date <=19) {value = "白羊座";}<BR>if (month == 3 && date > 31) {value = "OK. Whatever.";}<br>if (month == 4 && date >=20 || month == 5 && date <=20) {value = "金牛座";}<BR>if (month == 4 && date > 30) {value = "I'm soooo sorry!";}<br>if (month == 5 && date >=21 || month == 6 && date <=21) {value = "双子座";}<BR>if (month == 5 && date > 31) {value = "Umm ... no.";}<br>if (month == 6 && date >=22 || month == 7 && date <=22) {value = "巨蟹座";}<BR>if (month == 6 && date > 30) {value = "Sorry.";}<br>if (month == 7 && date >=23 || month == 8 && date <=22) {value = "狮子座";}<BR>if (month == 7 && date > 31) {value = "Excuse me?";}<br>if (month == 8 && date >=23 || month == 9 && date <=22) {value = "室女座";}<BR>if (month == 8 && date > 31) {value = "Yeah. Right.";}<br>if (month == 9 && date >=23 || month == 10 && date <=22) {value = "天秤座";}<BR>if (month == 9 && date > 30) {value = "Try Again.";}<br>if (month == 10 && date >=23 || month == 11 && date <=21) {value = "天蝎座";}<BR>if (month == 10 && date > 31) {value = "Forget it!";}<br>if (month == 11 && date >=22 || month == 12 && date <=21) {value = "人马座";}<BR>if (month == 11 && date > 30) {value = "Invalid Date";}<br>if (month == 12 && date >=22 || month == 1 && date <=19) {value = "摩羯座";}<BR>if (month == 12 && date > 31) {value = "No way!";}<br>}<br>x = (start - birthyear) % 12<br>with (document.zodiac.csign){<br>if (x == 1 || x == -11) {value = "老鼠";}<br>if (x == 0) {value = "牛";}<br>if (x == 11 || x == -1) {value = "老虎";}<br>if (x == 10 || x == -2) {value = "兔子";}<br>if (x == 9 || x == -3) {value = "龙";}<br>if (x == 8 || x == -4) {value ="蛇";}<br>if (x == 7 || x == -5) {value = "马";}<br>if (x == 6 || x == -6) {value = "羊";}<br>if (x == 5 || x == -7) {value = "猴子";}<br>if (x == 4 || x == -8) {value = "鸡";}<br>if (x == 3 || x == -9) {value = "狗";}<br>if (x == 2 || x == -10) {value = "猪";} <p>}<br>}<br>// End --><br> 出生年份 出生月份 请选择一个月份一月二月三月四月五月六月七月八月九月十月十一月十二月 天 星座: 属相: