title: Change background-image on a frequent time
body: <p>I want to change my background image on a frequent time but it will not work somebody has an idea</p>
  
  <pre><code>            var pics = function() {
                  var $pic_holder = $(".holder");
                  var timer = setTimeout(function () {
                      if ($pic_holder.css("background-image") !== "url(/picA.png)") {
                          $(".pic_holder").css("background-image", "url(/picA.png)")
                      }
                      else {
                          $(".pic_holder").css("background-image", "url(/picB.png)")
                      }
                  }, 1000);
              }
  </code></pre>
  
  <p>Thanks</p>