title: change background images in html
body: <p>in folder i have following images  w1.jpg,w2.jpg......  w7.jpg, now i  have this code for display w1.jpg on my html page</p>
  
  <pre><code>&lt;html&gt;
  &lt;body &gt;
  &lt;div style='position:absolute;z-index:0;left:0;top:0;width:100%;height:100%'&gt;
    &lt;img src='w1.jpg' style='width:99%;height:99%' alt='[]' /&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and i want to know,how to write script,which changes  images from w1.jpg to w7.jpg  in a specific  interval,as  i know for this there is used setInterval function in javascript,but could you help  to understand how i have to use it in my  code?thanks very much</p>