html code:
Create a simple div for load a file
<div class="refresh">This will get Refreshed in Every 10 Seconds using 'everytTime()'</div>
<script language="javascript" src="jquery.timers-1.0.0.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".refresh").everyTime(1000,function(i){
$.ajax({
url: "loadTime.php",
cache: false,
success: function(html){
$(".refresh").html(html);
}
})
})
$ss('.refresh').css({color:"green"});
});
</script>
<script type="text/javascript">
$("#waiting").show();
var auto_refresh=setInterval(function(){$(".load").load("loadDate.php").fadeIn("fast");
$("#waiting").hide()},1000)
</script>
That’s it! I am sure this will help you make your own time interval function for live activities, Good luck.
In this tutorial, I have write code to add custom meta query in main query…
This website uses cookies.