请计算十二宫和星座的代码..谢谢大家!

你怎么知道我有?你现在想要吗?

刚才查了一下,忘了是什么语言了。我先给你提供HTML+JavaScript。告诉我你想要什么语言,我以后写给你。

& lt脚本语言= " JavaScript " & gt

& lt!-开始

功能符号(){

var start = 1901,birth year = document . zodiac . year . value,date = document . zodiac . date . value,month = document . zodiac . month . selectedindex;

用(document.zodiac.sign){

if(month = = 1 & amp;& amp日期& gt=20 ||月= = 2 & amp& amp日期& lt=18) {value = "水瓶座";}

if(month = = 1 & amp;& amp日期& gt31) {value = "啊?";}

if(month = = 2 & amp;& amp日期& gt=19 ||月= = 3 & amp& amp日期& lt= 20){ value = " Pisces ";}

if(month = = 2 & amp;& amp日期& gt29) {value = "说什么?";}

if(month = = 3 & amp;& amp日期& gt=21 ||月= = 4 & amp& amp日期& lt= 19){ value = " Aries ";}

if(month = = 3 & amp;& amp日期& gt31) {value = "好的。管他呢。”;}

if(month = = 4 & amp;& amp日期& gt=20 ||月= = 5 & amp& amp日期& lt= 20){ value = " Taurus ";}

if(month = = 4 & amp;& amp日期& gt30) {value = "我很抱歉!";}

if(month = = 5 & amp;& amp日期& gt=21 ||月= = 6 & amp& amp日期& lt=21) {value = "双子座";}

if(month = = 5 & amp;& amp日期& gt31) {value = "嗯...没有”。}

if(month = = 6 & amp;& amp日期& gt=22 ||月= = 7 & amp& amp日期& lt=22) {value = "巨蟹座";}

if(month = = 6 & amp;& amp日期& gt30) {value = "对不起。";}

if(month = = 7 & amp;& amp日期& gt=23 ||月= = 8 & amp& amp日期& lt= 22){ value = " Leo ";}

if(month = = 7 & amp;& amp日期& gt31) {value = "请问?";}

if(month = = 8 & amp;& amp日期& gt=23 ||月= = 9 & amp& amp日期& lt=22) {value = "处女座";}

if(month = = 8 & amp;& amp日期& gt31) {value = "是啊。对。”;}

if(month = = 9 & amp;& amp日期& gt= 23 | | month = = 10 & amp;& amp日期& lt= 22){ value = " Libra ";}

if(month = = 9 & amp;& amp日期& gt30) {value = "再试一次。";}

if(month = = 10 & amp;& amp日期& gt= 23 | | month = = 11 & amp;& amp日期& lt=21) {value = "天蝎座";}

if(month = = 10 & amp;& amp日期& gt31) {value = "算了吧!";}

if(month = = 11 & amp;& amp日期& gt= 22 | | month = = 12 & amp;& amp日期& lt=21) {value = "射手座";}

if(month = = 11 & amp;& amp日期& gt30) {value = "无效日期";}

if(month = = 12 & amp;& amp日期& gt= 22 | | month = = 1 & amp;& amp日期& lt=19) {value = "摩羯座";}

if(month = = 12 & amp;& amp日期& gt31) {value = "不可能!";}

}

x =(起始出生年份)% 12

with (document.zodiac.csign){

if(x = = 1 | | x =-11){ value = " mouse ";}

if(x = = 0){ value = " cow ";}

if(x = = 11 | | x =-1){ value = " Tiger ";}

if(x = = 10 | | x = =-2){ value = " rabbit ";}

if(x = = 9 | | x = =-3){ value = " dragon ";}

if(x = = 8 | | x = =-4){ value = " snake ";}

if(x = = 7 | | x = =-5){ value = " horse ";}

if(x = = 6 | | x = =-6){ value = " sheep ";}

if(x = = 5 | | x = =-7){ value = " monkey ";}

if(x = = 4 | | x = =-8){ value = " chicken ";}

if(x = = 3 | | x = =-9){ value = " dog ";}

if(x = = 2 | | x =-10){ value = " pig ";}

}

}

//End-& gt;

& lt/script & gt;

& ltform name="zodiac " >

& lt中心& gt

& lttable bgcolor = " # eeaa 00 " border = " 2 " border color = " # 000000 " rules = " none " cellspacing = " 0 " cell padding = " 4 " & gt;

& lttr & gt& lttd & gt& ltb & gt& lt我& gt出生年

& lttd & gt& ltdiv align="right " >& ltinput type = " text " size = " 10 " name = " year " value = " year of birth " onClick = value = " " & gt;& lt/div & gt;& lt/TD & gt;

& lttd & gt& lt!-这个空字段只是为了外观-& gt;& lt/TD & gt;

& lttr & gt& lttd & gt& ltb & gt& lt我& gt出生月份

& lttd & gt& ltdiv align="right " >

& ltselect name="month " >

& ltoption value = " x " & gt请选择月份

& ltoption value="1 " >一月

& ltoption value="4 " >四月

& ltoption value="7 " >七月

& ltoption value="10 " >十月

& ltoption value="12 " >十二月

& lttd & gt& lt!-这个空字段只是为了外观-& gt;& lt/TD & gt;& lt/tr & gt;

& lttr & gt& lttd & gt& ltb & gt& lt我& gt神

& lttd & gt& ltdiv align="right " >& ltinput type = " text " name = " date " value = " day " size = " 3 " onClick = value = " " & gt;& lt/TD & gt;

& lttd & gt& ltinput type = " button " value = " Calculate " onClick = " signs()" & gt;& lt/div & gt;& lt/TD & gt;& lt/tr & gt;

& lttr & gt& lttd & gt& ltb & gt& lt我& gt星座:

& lttd & gt& ltdiv align="right " >& ltinput type = " text " name = " sign " size = " 12 " value = " " align = " right " >& lt/div & gt;& lt/TD & gt;& lt/tr & gt;

& lttd & gt& lt!-这个空字段只是为了外观-& gt;& lt/TD & gt;& lt/tr & gt;

& lttr & gt& lttd & gt& ltb & gt& lt我& gt十二宫图:

& lttd & gt& ltdiv align="right " >& ltinput type = " text " name = " csign " size = " 12 " >& lt/div & gt;& lt/TD & gt;

& lttd & gt& lt!-这个空字段只是为了外观-& gt;& lt/TD & gt;& lt/tr & gt;

& lt/table & gt;

& lt/center & gt;

& lt/form & gt;