title: Javascript Image Trick
body: <pre><code>$(document).ready(function () {
  
  var count = 0;
  var images = [
      "http://79.115.69.135:8521/UnderConstruction/Images/deestiny.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/dishonored.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/fallout4.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/fc3.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/halo5.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/me-som.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/rise.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/road4.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/southpark.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/subzero.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/tesv.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/thief.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/watchdogs.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/me-sow.jpg",
      "http://79.115.69.135:8521/UnderConstruction/Images/wot.jpg",
  
  ];
  var image = $(".background");
  
  image.css("background-image", "url(" + (images[count] + ")"))
  
  setInterval(function () {
      image.fadeOut(1500, function () {
          image.css("background-image", "url(" + images[count++] + ")");
          image.fadeIn(1500);
      });
      if (count == images.length) {
          count = 0;
      }
  },10000);     });
  </code></pre>
  
  <p>I have this JavaScript code....every time I want to add a new image,I need to write a new line with <a href="http://ip.com/folder/folder/img.img" rel="nofollow noreferrer">http://ip.com/folder/folder/img.img</a>...
  1.How can i make it to be random...select random images!
  2.How to make only 1 line with ip.com...never made a new line when i want to add a image!</p>
  
  <p><a href="http://79.115.68.191:8521" rel="nofollow noreferrer">For Dev who are courious</a></p>