asp根据出生时间判断生肖

<%

rem 从BbsXp提出来的生肖函数:

rem asp学习网 www.aspxuexi.com
Function Zodiac(birthday)
If IsDate(birthday) Then
birthyear = Year(birthday)
ZodiacList = Array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊")
Zodiac = ZodiacList(birthyear Mod 12)
End If
End Function
%>

你可能感兴趣的:(asp)