title: setInterval to loop through array in javascript?
body: <p>I have a website where they want a news ticker. Currently, I have a array that populates it, and every x seconds, I want the news story to change.</p>
  
  <pre><code>function startNews(stories) {
  
  }
  </code></pre>
  
  <p>I am aware that you can use <code>setInterval</code>, but it has to go through a new function and you can't specify certain javascript in the same function to fire when it does. </p>
  
  <p>What are you suggestions?</p>
  
  <p>Thanks!</p>