87,996
社区成员




<script type="text/javascript">
$(document).ready(function () {
if(depcode=='10')
{
setInterval(function () {
Push();
},
10000);
}
});
function Push() {
$.ajax({
type: "post",
url: "/POInfo/MesPush",
dataType: "json",
success: function (data) {
if (data.success) {
if ($.browser.msie && $.browser.version == '8.0') {
$('#newMessageDiv').html('<embed src="~/Content/alert.wav"/>');
}
else {
$('#newMessageDiv').html('<audio autoplay="autoplay"><source src="~/Content/alert.wav"'
+'type="audio/wav"/><source src="~/Content/alert.wav" type="audio/mpeg"/></audio>');
}
alert("你有一条新消息");
window.location.reload();
}
}
});
}
</script>
<div id="newMessageDiv" style="display:none;"></div>
document.location + '~/Content/alert.wav'
资源换成 web 绝对路径试试(先起一个 web server)