Created
September 14, 2016 21:09
-
-
Save davidsword/33e9411b733f5697d3499afc0d9d2b81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script type='text/javascript'> | |
$(document).ready(function() { | |
setInterval(function() { | |
var url = 'http://full_url_of_this_page.html'; | |
$('#refresh_zone-wrapper').load(url + ' #refresh_zone'); //note: space between intentional | |
}, 2000); // milliseconds | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="refresh_zone-wrapper"> | |
<div id="refresh_zone"> | |
<?= rand(1,9999) ?> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment