Ghost全自动系统备份光盘正式版 V4.5 | 硬盘版 V2.0 | 排行榜 TOP50 | 图文推荐 | 玩小游戏
首页 >> Asp编程 >> Asp经验技巧 >> asp根据出生时间判断生肖

asp根据出生时间判断生肖

来源:中国Asp之家 时间:2008-3-24 网友评论条 【

从BbsXp提出来的生肖函数Zodiac(birthday)。

使用方法:birthday为把要判断的出生时间,如2008-3-24 20:07:57或2008-3-24合法的日期就行。

如:

response.write Zodiac("1988-5")  

 输出地结果就是:

<% Function Zodiac(birthday) 
If IsDate(birthday) Then 
birthyear = Year(birthday) 
ZodiacList = Array("猴", "鸡", "狗", "猪", "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊") 
Zodiac = ZodiacList(birthyear Mod 12) 
End If 
End Function 
%>

站长工具
ALEXA世界排名查询:
相关文章
loading 请稍等,评论加载中...

Aspxhome.com. 中国Asp之家. 版权所有

闽ICP备06017341号