Im using this javascript code to show selected image to upload:
    var input = document.getElementById("images"), 
    formdata = false;
function showUploadedItem (source) {
    var list = document.getElementById("image-list"),
        li   = document.createElement("li"),
        img  = document.createElement("img");
    img.src = source;
    li.appendChild(img);
    list.appendChild(li);
}  
HTML:
 <span class="span4">
   <div id="response"></div>
   <ul id="image-list">
   </ul>
 </span> 
How can I edit the code so the image selected and is showed is showed with 400px insted of orginal size. Example:
Thanks!
 
     
     
     
     
     
     
    