ASP实现语音分时问候

<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 是的问候语音

 

 

 

 

2
<script language="javascript">
<!--
now = new Date(),hour = now.getHours()
if(hour < 6){document.write(''<bgsound src="sound1.mid" loop="infinite">'')}
else if (hour < 9){document.write(''<bgsound src="sound2.mid" loop="infinite">'')}
else if (hour < 12){document.write(''<bgsound src="sound3.mid" loop="infinite">'')}
else if (hour < 14){document.write(''<bgsound src="sound4.mid" loop="infinite">'')}
else if (hour < 17){document.write(''<bgsound src="sound5.mid" loop="infinite">'')}
else if (hour < 19){document.write(''<bgsound src="sound6.mid" loop="infinite">'')}
else if (hour < 22){document.write(''<bgsound src="sound7.mid" loop="infinite">'')}
else {document.write(''<bgsound src="sound8.mid" loop="infinite">'')}
// -->
</script>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值