Create a div container with the position: relative. Then place your image inside the div, as well as your original div as a position: absolute, but in coordinates relative to the div container. eg,
<div style='position:relative'> <img src='' alt=''/> <div id='original' style='position:absolute; top:10px; left:50px'/> </div>
You can use jQuery to inject some or all of this markup or change the style, but you don't need to use a script at all.
James westgate
source share