|
<bgsound src="#" id="sound" loop=1 autostart="true" />
<scrip t LANGUAGE=Javascrip t>
_sd_Post(Url, Args)
{
var xmlhttp;
var error;
eval('try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {xmlhttp = null;error=e;}');
if(null != xmlhttp)
{
xmlhttp.Open("POST", Url, false);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.Send(Args);
strText = xmlhttp.responseText;
}
else
{
strText = 'c_error';
}
return strText;
}
var soundPath="/ringin.wav";//文件地址
play(soundPath){
if (all && getElementById){
getElementById("sound").src="/soundPath";}
}
Url = '';
Args = '';
_post(){
if (_sd_Post(Url, Args)=='true'){opener.location.reload();}
setTimeout('_post()',120000);
}
if (_sd_Post(Url, Args)=='true'){play(soundPath);}
setTimeout('_post()',120000);
</scrip t> |