For every image, there are two versions, a small and large one. The small ones are displayed in a table and when u move the cursor over one of the images, the larger image is displayed over that one in a DIV.

So the cursor moves over a smaller image, a div appears and the center of that DIV (with an image inside it) is centered on the center of the smaller image.

i already have some beginnings, but how do I get the location of an image in the browser?

Garadon

06-21-2004, 10:54 PM

something like this would get the small image top and left position.
<script>
function getRealPos(ele,dir)
{
(dir=="x") ? pos = ele.offsetLeft : pos = ele.offsetTop;
tempEle = ele.offsetParent;