title: Show and hide a div every 1s
body: <p>Hi i want to show a div for 1s and hide 1s and loop this
  code :</p>
  
  <pre><code>&lt;div&gt;Flashing&lt;/div&gt;
  
      &lt;script&gt;
          $(document).ready(function(){
          hide();
  
          function show(){
            setTimeout(function(){
              $('div').show();
            }, 2000);
            hide();
          }
  
          function hide(){
            setTimeout(function(){
              $('div').hide();
            }, 2000);
            show();
          }
        });
      &lt;/script&gt;
  </code></pre>
  
  <p>But the browser give me a error:
  the error:</p>
  
  <blockquote>
    <p>Uncaught RangeError: Maximum call stack size exceeded</p>
  </blockquote>