Example 1 ›



Source code:

// Head
<script src="prototype.js" type="text/javascript"></script>
<script src="lightwie.js" type="text/javascript"></script>

// Body
<img id="testimage" src="testimage.jpg" style="position: relative;" />

<script>
var T = new ImageEditor("testimage", 0, "", "IEDefault", 40);
T.areaEvent = function (image, x, y, width, height) { alert("Image source:"+image.src+" / x : "+x+" / y : "+y+" / width : "+width+" / height:"+height); };
</script>