Saturday, March 23, 2013

JQuery Auto Refresh

Its small code but powerful and helpful.
 
<script>
 var auto_refresh = setInterval(
 function(){
  $('#autorefresh').fadeOut('slow').load('refresh.php').fadeIn("slow");
 }, 20000);
</script>

<div id="autorefresh">Hello</div>

No comments:

Post a Comment