title: jquery simple image changer
body: <p>Hello everyone I have this code to change multiple images like slideshow</p>
  
  <pre><code>function test() {
     $(".topimg img").first().appendTo('.topimg').fadeOut(1000);
     $(".topimg img").first().fadeIn(1000);
     setTimeout(test, 7000);
  }
  test();
  </code></pre>
  
  <p>But I have one problem when I minimize browser or change tab and when I back image are changing too fast.How can I fix that and please fix this code do not give me another one with javascript or anything this is the simple one.</p>