自分の属性と星座のjsを取得します.
762 ワード
<br>function f_GetAnimal(ld_year) <br>{<br> var la_Animals=new Array(" "," "," "," "," "," "," "," "," "," "," "," ");<br> alert(la_Animals[(ld_year-4)%12]);<br>}<br>function f_GetAstro(ld_month,ld_day)<br>{<br> var s=" ";<br> var arr=[20,19,21,21,21,22,23,23,23,23,22,22];<br> alert(s.substr(ld_month*2-(ld_day<arr[ld_month-1]?2:0),2));<br>}<br>