Здравейте. Имам малък проблем с 1 jquery tooltip. Проблема е, че когато натисне върху линк и изкочи балончето няма проблеми ако има само текст. Сложа ли обаче div, a, table или каквото и да е когато мина през тях се затваря. Ето малко код.
Код:
this.vtip = function() {
this.xOffset = -20; // x distance from mouse
this.yOffset = -25; // y distance from mouse
$(".vtip").unbind().click(
function(e) {
this.t = this.title;
this.title = '';
this.top = (e.pageY + yOffset);
this.left = (e.pageX + xOffset);
$('body').append( '<div id="vtip">' + this.t + '</div>' );
$('#vtip').unbind('mouseout').css("top", this.top+"px").css("left", this.left+"px").show("");
var that = this;
$('#vtip').mouseout(
function() {
that.title = that.t;
$(this).fadeOut("slow").remove();
}
);
}
);
};
jQuery(document).ready(function($){
vtip();
});