birthday.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:1k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <%
  2. function astro(birth)
  3. on error resume next
  4. dim birthday,birthmonth
  5. birthday=day(birth)
  6. birthmonth=month(birth)
  7. select case birthmonth
  8. case 1
  9. if birthday>=21 then
  10. astro="水瓶座"
  11. else
  12. astro="魔羯座"
  13. end if
  14. case 2
  15. if birthday>=20 then
  16. astro="双鱼座"
  17. else
  18. astro="水瓶座"
  19. end if
  20. case 3
  21. if birthday>=21 then
  22. astro="白羊座"
  23. else
  24. astro="双鱼座"
  25. end if
  26. case 4
  27. if birthday>=21 then
  28. astro="金牛座"
  29. else
  30. astro="白羊座"
  31. end if
  32. case 5
  33. if birthday>=22 then
  34. astro="双子座"
  35. else
  36. astro="金牛座"
  37. end if
  38. case 6
  39. if birthday>=22 then
  40. astro="巨蟹座"
  41. else
  42. astro="双子座"
  43. end if
  44. case 7
  45. if birthday>=23 then
  46. astro="狮子座"
  47. else
  48. astro="巨蟹座"
  49. end if
  50. case 8
  51. if birthday>=24 then
  52. astro="处女座"
  53. else
  54. astro="狮子座"
  55. end if
  56. case 9
  57. if birthday>=24 then
  58. astro="天秤座"
  59. else
  60. astro="处女座"
  61. end if
  62. case 10
  63. if birthday>=24 then
  64. astro="天蝎座"
  65. else
  66. astro="天秤座"
  67. end if
  68. case 11
  69. if birthday>=23 then
  70. astro="射手座"
  71. else
  72. astro="天蝎座"
  73. end if
  74. case 12
  75. if birthday>=22 then
  76. astro="魔羯座"
  77. else
  78. astro="射手座"
  79. end if
  80. case else
  81. astro=""
  82. end select
  83. end function
  84. %>