根据日期得到生肖的ASP函数

Cherise ·
更新时间:2024-09-21
· 980 次阅读

根据生日时间返回所属生肖
代码如下:
<%  
Function Zodiac(birthday)  
If IsDate(birthday) Then  
birthyear = Year(birthday)  
ZodiacList = Array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊")  
Zodiac = ZodiacList(birthyear Mod 12)  
End If  
End Function  
%>



生肖 ASP

需要 登录 后方可回复, 如果你还没有账号请 注册新账号