title: How to make images appear in Javascript
body: <p>I'm not very fluent in javascript, and I feel like this is really basic, but I can't seem to find it online <strong>anywhere</strong>. </p>
  
  <p>I want to create a link that will trigger a javascript function that makes an image appear in a separate div.  It can't be in flash, otherwise I have no objection to the coding language.</p>
  
  <p>I have several images, so I would think that the best way to do this would be to layer them all on top of each other and then increase the z-index each time their link is clicked, but you might have a better idea.</p>
  
  <p>I really just want someway to create a sort of primitive image gallery that doesn't use flash and displays the photo in its div when the corresponding link is clicked.</p>
  
  <p>Thanks in advance, Alex</p>