title: Show and Hide div (with some delay) using setInterval (no loop)
body: <p>I want this function to show div after a time interval and then hide it after some time with no looping</p>
  
  <pre><code>function myfun(){
              setInterval(function(){$("#welcome").show(100)}, 2000);
              setInterval(function(){$("#welcome").hide(500)}, 7000);
              }
  </code></pre>
  
  <p>but from this function it generates a infinite loop</p>
  
  <p>can anyone help me </p>