<html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> <script> $(document).ready(function() { var refreshId = setInterval(function() { $.ajax({ src: 'jericho.jpg?' + Math.random(), ifModified: true, success: function(data) { $('.jericho').attr('src', 'jericho.jpg?' + Math.random()); } }); }, 1000); $.ajaxSetup({ cache: false }); }); </script> </head> <body> <img class="jericho" src="jericho.jpg" alt="Offline"> </pre> </body> </html>