setTimeout(refresh_news, 60000); //каждую минуту
function refresh_news(){
$.ajax({
type: "GET",
cache: false,
dataType : 'html',
url: "load_logs.php?sid=<? echo $sid; ?>&hash=<? echo $hash; ?>&last_id=" + last_news_id,
success: function(html)
{
var audio = new Audio();
var logs = $("#logs").html();
if(html == logs){
}else{
$("#logs").html(html);
// document.getElementsByTagName('audio')[0].play();
}
}
}