').appendTo(document.body).hide();});
else helper = jQuery("div.tooltip").hide();
effect.show = options.effect;
switch(options.effect) {
case 'fadeIn': effect.hide = 'fadeOut'; break;
case 'show': effect.hide = 'hide'; break;
case 'slideDown': effect.hide = 'slideUp'; break;
default: effect.hide = 'fadeOut'; break;
}
return this.each(function() {
if(options.txt) el_tips[jQuery.data(this)] = options.txt;
else el_tips[jQuery.data(this)] = this.title;
this.title = '';
this.alt = '';
}).mouseover(
function () {
if(el_tips[jQuery.data(this)] != '') {
helper.css('width','');
helper.html(el_tips[jQuery.data(this)]);
if(helper.width() > options.maxWidth) helper.width(options.maxWidth);
eval('helper.'+effect.show+'('+options.duration+')');
jQuery(this).bind('mousemove', update);
}
}
).mouseout(
function () {
jQuery(this).unbind('mousemove', update);
eval('helper.'+effect.hide+'('+options.duration+')');
}
);
function update(e) {
if (e.pageX + helper.width() + 40 > jQuery(document).scrollLeft() + window.screen.availWidth)
helper.css({left: e.pageX - helper.width() - 25 + "px"});
else helper.css({left: e.pageX + 5 + "px"});
if (e.pageY - helper.height() - 25
Copyright MAXXmarketing Webdesigner GmbH
Подробнее...