title: Activates javascript after 'x' seconds
body: <p>Is it possible that the javascript automatically activates after 8 seconds when a user is not using the link, so that it continues every 8 seconds, from Q1 to Q2, Q3 etc</p>
  
  <p>JAVASCRIPT:</p>
  
  <pre><code>function laatZien(divID) {
   var tabs = ["Q1", "Q2", "Q3"];
    for(var i in tabs)
    { if (tabs[i] != divID)
    {            
    document.getElementById(tabs[i]).className = "verstopt"; b
    } }
    var item = document.getElementById(divID);
      if(item.className=="verstopt") {
      item.className = "zichtbaar"
      } else {
      item.className = "zichtbaar"
    }
  }
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="Q1" class="zichtbaar"&gt;
    &lt;a href="javascript:laatZien('Q2');"&gt;Next (Q2)&lt;/a&gt;
  &lt;/div&gt;
  &lt;div id="Q2" class="verstopt"&gt;
    &lt;a href="javascript:laatZien('Q3');"&gt;Next (Q3)&lt;/a&gt;
  &lt;/div&gt;
  &lt;div id="Q3" class="verstopt"&gt;
    &lt;a href="javascript:laatZien('Q1');"&gt;Back&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>#Q1.verstopt, #Q2.verstopt, #Q3.verstopt{
  display: none;
  }
  
  #Q1.zichtbaar, #Q2.zichtbaar, #Q3.zichtbaar{
  display: block;
  }
  </code></pre>