showing results for - "add image inside a div on specific position javascript"
Louis
21 Nov 2017
1function updateDiv(id, width, height, left, top, opacity) 
2{ 
3    var mydiv = document.getElementById(id);
4    mydiv.setAttribute('id', id);  
5
6    mydiv.style.width =  width + "px";     
7    mydiv.style.height = height + "px";     
8
9    mydiv.style.position = "absolute"; 
10    mydiv.style.left = left + "px";         
11    mydiv.style.top = top + "px";  
12
13    mydiv.style.opacity = opacity;
14}
15