title: html image src call javaScript variable
body: <p>this is my code: I want to ask </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var total = 4;
  
  &lt;/script&gt;
  </code></pre>
  
  <p>How can I do this?</p>
  
  <pre><code>&lt;img src="img/apple_" + total + ".png" id="imageBox"/&gt;
  </code></pre>
  
  <p>I've been try to use call function and document.onload but it's not work at all, can somebody save me?</p>