Here's my code:
$('#details').hover(function() {
var tag = 'div.cds'
var offset = $(this).position();
var width = $(tag).outerWidth();
var height = $(tag).outerHeight();
$(tag).show();
$(tag).css('left', offset.left - width + 'px');
$(tag).css('top', offset.top - height + 'px');
}, function() {
$(tag).hide();
});
When I "mouseout", the variable "tag" does not hide.
JSFiddle here: http://jsfiddle.net/79kLc/
Thanks!