我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

jquery声音通知

I'm building simple php/mysql/jquery live support chat which includes only 2 files, chat.php and admin.php but I'm stuck with sound notification. How can I receive sound notification in file admin.php when visitor post a message in chat.php. Any help is more than welcome.

If you have a notify.wav (or whatever you'd like to use) you can use soundmanager 2 and queue javascript to play the sound when an event has occurred (most likely through the use of AJAX or PUSH notifications)

近期文章

  • PHP foreach循环嵌套
  • 在PHP中摆脱重复信息
  • Joomla JHTML ::日历输入验证
  • PHP自定义结帐开源[关闭]
  • CakePHP检查或添加用户ID到帖子
  • 如何在PHP中更新单行?
  • Windows Azure中的PHP Web服务Nusoap
  • 麻烦多个mysql查询
  • php foreach循环在表单验证中
  • 从多维数组中获取值并存储到关联数组中
  • 获取所有数据并删除表格的副本
  • 将会话限制为仅1个用户登录实例
  • PREG_MATCH_ALL参加最后一场比赛
  • 如何根据其中一个值转换数组
  • 构造函数在没有类实例化的情况下中断app [关闭]
  • wordpress自定义帖子模板中的语法错误,意外的T_DOUBLE_ARROW
  • 想要在window.onload = init上使用javascript; 锚定“#top”
  • 期望多个结果时正确的SELECT查询
  • Cakephp - 将数字DB值转换为字符串以供显示
  • SyntaxError:由\ u2028和\ u2029引起的意外标记ILLEGAL

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华