Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Обърни вниманието на думите "рефреш на див", не на страница.ArchDevil каза:Няма ли да е по-лесно
Промени си само index.htmlКод:<meta http-equiv='refresh' content='5;index.html'>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="">
<title>Untitled 2</title>
<script src="jquery/jquery.js"></script>
<script type="text/javascript">
var _v = 0;
var _v2 = 1;
function ajax_update()
{
var wrapperId = '#content';
var postFile = 'bgtopid.php';
_v++;
_v2++;
$.post(postFile, { v2: _v2 , v: _v}, function(data){
$(wrapperId).slideUp('2000',function(){
$(this).html(data).slideDown();
}).html();
});
setTimeout('ajax_update()', 6000);
}
</script>
</head>
<body onload="ajax_update();">
<div id="content"></div>
</body>
</html>