title: Use External JavaScript file to change display on div
body: <p>I am currently doing this:</p>
  
  <pre><code>&lt;div id="textChange" style="display:none;"&gt;Blah blah&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  var d = new Date();
  var funnyDate = (d.getFullYear() + "" + (d.getMonth()+11) + "" + (d.getDate()+10));
  if((funnyDate&gt;=20131916) &amp;&amp; (funnyDate&lt;=20131923))
  {
  document.getElementById("textChange").style.display ="block";
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>and would like to move the script to an external JS file. How do I do that? I doesn't seem to be working for me.</p>
  
  <p>Thanks.</p>