复制代码 代码如下: <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>with (document.zodiac.sign){ <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> 出生年份 出生月份 请选择一个月份 一月 二月 三月 四月 五月 六月 七月 八月 九月 十月 十一月 十二月 天 星座: 属相: