for an IM script i am making, i would like the computer to beep like in gmail everytime there is a new message. is there a script in php or html to make the computer beep?
对于我正在制作的IM脚本,我希望每当有新消息时,计算机就像在gmail中一样发出哔哔声。有没有PHP或HTML格式的脚本让计算机发出哔哔声?
Thanks!
2 个解决方案
#1
All you need to do is load a small flash movie that makes the sound, you can easily toggle it in your page with Javascript whenever you need it.
您需要做的就是加载一个发出声音的小型Flash电影,您可以随时使用Javascript在您的页面中轻松切换它。
#2
Several popular javascript libraries have interfaces for playing sounds built in or available as plugins, for example see Scriptaculous and jQuery.
几个流行的javascript库具有用于播放内置或可用作插件的声音的接口,例如,参见Scriptaculous和jQuery。
#1
All you need to do is load a small flash movie that makes the sound, you can easily toggle it in your page with Javascript whenever you need it.
您需要做的就是加载一个发出声音的小型Flash电影,您可以随时使用Javascript在您的页面中轻松切换它。
#2
Several popular javascript libraries have interfaces for playing sounds built in or available as plugins, for example see Scriptaculous and jQuery.
几个流行的javascript库具有用于播放内置或可用作插件的声音的接口,例如,参见Scriptaculous和jQuery。