title: How do I display an image from a URL using a Variable to create the URL
body: <p>I am wishing to include an image in a page that will change each day.
  My variable string calculation works (can display the url using  but am having problems working out how to put the variable as the url  this is what I have so far:</p>
  
  <pre><code>&lt;script&gt; 
  var tD = new Date(); 
  var datestr = "http://www.fakeurl.com/" + (tD.getMonth()+1) + "/" + tD.getDate() + ".jpg"; 
  document.getElementById("+datestr+")
  img src='"+ datestr +"' style="border: 0px;" /
  &lt;/script&gt;
  </code></pre>
  
  <p>What do I need to do different to get it to actually display my image?
  I am a newby please help.</p>