Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2012
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function() {
  2.     setInterval(function() {
  3.         $('img.imageClassUpdateAtInterval:not([src="/assets/spinner.gif"])').each(function() {
  4.             $this = $(this);
  5.             if (!$this.data('src')) {
  6.                 $this.data('src', $this.prop('src'));
  7.             }
  8.  
  9.             $this.prop('src', $this.data('src') + '?timestamp=' + new Date().getTime());
  10.             console.log($this.prop('src'));
  11.         });
  12.     }, 60 * 1000);
  13. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement