add image inside a div on specific position javascript
function updateDiv(id, width, height, left, top, opacity)
{
var mydiv = document.getElementById(id);
mydiv.setAttribute('id', id);
mydiv.style.width = width + "px";
mydiv.style.height = height + "px";
mydiv.style.position = "absolute";
mydiv.style.left = left + "px";
mydiv.style.top = top + "px";
mydiv.style.opacity = opacity;
}