Last Update:2017-08-24
Source: Internet
Author: User
Keywords
Web page production
Ajax
javascript
function 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 = "Aquarius";} if (month = = 1 && date >) {value = "Huh?";} if (month = = 2 && Date >=19 | | month = = 3 && date <=20) {value = "Pisces";} if (month = = 2 && date >) {value = "dour what?";} if (month = = 3 && Date >=21 | | month = = 4 && date <=19) {value = "Aries";} if (month = = 3 && date >) {value = OK. Whatever. ";} if (month = = 4 && Date >=20 | | month = = 5 && date <=20) {value = "Taurus";} if (month = = 4 && date >) {value = ' I ' m soooo sorry! ';} if (month = = 5 && Date >=21 | | month = 6 && date <=21) {value = "Gemini";} if (month = = 5 && date >) {value = Um ... no.} if (month = = 6 && Date >=22 | | month = = 7 && date <=22) {value = "cancer";} if (month = = 6 && date >) {value = ' sorry. '} if (month = = 7 && Date >=23 | | month = = 8 && date <=22) {value = Leo;} if (month = = 7 && date >) {value = "excuse me?";} if (month = = 8 && Date >=23 | | month = = 9 && date <=22) {value = "Virgo";} if (month = = 8 && date >) {value = yes. Right. ";} if (month = = 9 && Date >=23 | | | month = && Date <=22) {value = "Libra";} if (month = = 9 && date >) {value = ' try recycle. '} if (month = && Date >=23 | | | month = && Date <=21) {value = "Scorpio";} if (month = && date >) {value = ' forget it! ';} if (month = && Date >=22 | | | month = = && Date <=21) {value = "Sagittarius";} if (month = && date >) {value = ' invalid Date ';} if (month = = && Date >=22 | | month = = 1 && date <=19) {value = "Capricorn";} if (month = = && date >) {value = ' no way! ';} } }