开发者

showing real-time web statistics - hits from visitors

I have a web statistic website based on php script. I want to show in real-time to my clients when a visitors hits their website. The info is presented in static way, the clients must refresh the page to see if any hi开发者_JAVA技巧t ocurred. I searched and tried...but nothing.


use jQuery and ajax

demo:

setInterval(function(){
      $("#statistics").load("statistics.php");
}, 10000);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜