欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

ASP实现语音分时问候

程序员文章站 2023-11-08 14:17:46
<% dim wehif time >=#1:00:00 am# and time < #6:00:00...

<bgsound src="wen.mid" loop="0">
<% dim weh
if time >=#1:00:00 am# and time < #6:00:00 pm#  then
  weh = "<bgsound src="1.mid" loop="0">"
else  if time >#6:00:00 am# and time < #9:00:00 pm#
  weh = "<bgsound src="2.mid" loop="0">"
 else  if time >#9:00:00 am# and time < #12:00:00 pm#
  weh = "<bgsound src="3.mid" loop="0">"
else  if time >#12:00:00 am# and time < #14:00:00 pm#
  weh = "<bgsound src="4.mid" loop="0">"
else  if time >=#14:00:00 am# and time < #17:00:00 pm#
  weh = "<bgsound src="4.mid" loop="0">"
else  if time >=#17:00:00 am# and time < #19:00:00 pm#
  weh = "<bgsound src="5.mid" loop="0">"
else  if time >=#19:00:00 am# and time < #24:00:00 pm#
  weh = "<bgsound src="6.mid" loop="0">"
end if
%>
<%=wen %>

上面的 x.mid 是的问候语音