复制代码代码如下:
<script language = "javaScript">
<!- ابدأ
علامات الوظيفة () {
var start = 1901 ، birthyear = document.zodiac.year.value ، date = document.zodiac.date.value ، month = document.zodiac.month.SelectedIndex ؛
مع (document.zodiac.sign) {
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 = "say What؟" ؛}
if (month == 3 && date> = 21 || month == 4 && date <= 19) {value = "白羊座" ؛}}
if (month == 3 && date> 31) {value = "ok. anhing." ؛}
if (month == 4 && date> = 20 || month == 5 && date <= 20) {value = "金牛座" ؛}
if (month == 4 && date> 30) {value = "أنا آسف!" ؛}
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 = "Sorry." ؛}
if (month == 7 && date> = 23 || month == 8 && Date <= 22) {value = "狮子座" ؛}
if (month == 7 && date> 31) {value = "Emr Me؟" ؛}
if (month == 8 && date> = 23 || month == 9 && date <= 22) {value = "室女座" ؛}
if (month == 8 && date> 31) {value = "نعم. اليمين." ؛}
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 = "تاريخ غير صالح" ؛}
if (month == 12 && date> = 22 || month == 1 && date <= 19) {value = "摩羯座" ؛}
if (month == 12 && date> 31) {value = "no way!" ؛}
}
x = (ابدأ - الولادة) ٪ 12
مع (document.zodiac.csign) {
if (x == 1 || x == -11) {value = "老鼠" ؛}
if (x == 0) {value = "牛" ؛}
if (x == 11 || x == -1) {value = "老虎" ؛}
if (x == 10 || x == -2) {value = "兔子" ؛}
if (x == 9 || x == -3) {value = "龙" ؛}
if (x == 8 || x == -4) {value = "蛇" ؛}
if (x == 7 || x == -5) {value = "马" ؛}
if (x == 6 || x == -6) {value = "羊" ؛}
if (x == 5 || x == -7) {value = "猴子" ؛}
if (x == 4 || x == -8) {value = "鸡" ؛}
if (x == 3 || x == -9) {value = "狗" ؛}
if (x == 2 || x == -10) {value = "猪" ؛}
}
}
// end ->
</script>
<form name = "zodiac">
<centre>
<table bgcolor = "#eeaa00" borderColor = "#000000" Rules = "none" cellspacing = "0" cellpadding = "4">
<tr> <td> <b> <i> 出生年份 </i> </b> </td>
<td> <div align = "right"> <input type = "text" size = "10" name = "year" value = "出生年份" onClick = "
<td> <!-هذا الحقل الفارغ هو فقط للمظهر-> </td>
<tr> <td> <b> <i> 出生月份 </i> </b> </td>
<td> <div align = "right">
<تحديد الاسم = "الشهر">
<Option Value = "X"> 请选择一个月份 </soph>
<Option Value = "1"> 一月 </sption> <Option Value = "2"> 二月 </soph> <Option Value = "3"> 三月 </Option>
<Option Value = "4"> 四月 </sption> <Option Value = "5"> 五月 </soph> <Option Value = "6"> 六月 </Option>
<Option Value = "7"> 七月 </soph> <Opture Value = "8"> 八月 </soph> <Option Value = "9"> 九月 </Option>
<Option Value = "10"> 十月 </soph> <Opture Value = "11"> 十一月 </Option>
<Option Value = "12"> 十二月 </soph> </rection> </viv> </td>
<td> <!-هذا الحقل الفارغ هو فقط للمظهر-> </td> </tr>
<tr> <td> <b> <i> 天 </i> </b> </td>
<td> <div align = "right"> <input type = "text" name = "date" value = "天" size = "3" onClick = "" "> </td>
<td> <input type = "button" value = "计算一下" onClick = "Signs ()"> </viv> </td> </r>
<tr> <td> <b> <i> 星座: </i> </b> </td>
<td> <div align = "right"> <input type = "text" name = "sign" size = "12" value = "" align = "right"> </viv> </td> </tr>
<td> <!-هذا الحقل الفارغ هو فقط للمظهر-> </td> </tr>
<tr> <td> <b> <i> 属相: </i> </b> </td>
<td> <div align = "right"> <input type = "text" name = "csign" size = "12"> </viv> </td>
<td> <!-هذا الحقل الفارغ هو فقط للمظهر-> </td> </tr>
</table>
</center>
</form>