Here is the fiddle: http://jsfiddle.net/5Lfqr/
The fiddle contains this html for a pair of images (thumb and big):
<div class="wrapper">
<a href="http://cssglobe.com/lab/tooltip/02/1.jpg" class="preview" title="">
<img src="http://cssglobe.com/lab/tooltip/02/1s.jpg" alt="gallery thumbnail">
</a>
</div>
The idea is to display the big image when user hovers the mouse over the thumbnail.
This solution is very simple and works well except for one thing: originally, the offset of the big image is just to the right and down of the mouse position. I would like the big image to be over the thumb, so it should cover it. When I implement it, changing the offset like this:
xOffset = -100;
yOffset = -100;
the big image flickers. It's probably because the mouse cursor is over the thumb and at the same time over the big, so it can't decide what to do. The big image should become transparent for hover.
Is there a solution to it?