ASP实现语音分时问候

王朝asp·作者佚名  2006-01-08
窄屏简体版  字體: |||超大  

<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>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航