/* FILE ARCHIVED ON 15:29:35 Sep 6, 2013 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 18:43:59 Mar 27, 2017. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ (function($) { $.fn.easyTooltip = function(options){ // default configuration properties var defaults = { xOffset: 10, yOffset: 25, tooltipId: "easyTooltip", clickRemove: false, content: "", useElement: "" }; var options = $.extend(defaults, options); var content; this.each(function() { var title = $(this).attr("title"); $(this).hover(function(e){ content = (options.content != "") ? options.content : title; content = (options.useElement != "") ? $("#" + options.useElement).html() : content; $(this).attr("title",""); if (content != "" && content != undefined){ $("body").append("
"+ content +"
"); $("#" + options.tooltipId) .css("position","absolute") .css("top",(e.pageY - options.yOffset) + "px") .css("left",(e.pageX + options.xOffset) + "px") .css("display","none") .fadeIn("fast") } }, function(){ $("#" + options.tooltipId).remove(); $(this).attr("title",title); }); $(this).mousemove(function(e){ $("#" + options.tooltipId) .css("top",(e.pageY - options.yOffset) + "px") .css("left",(e.pageX + options.xOffset) + "px") }); if(options.clickRemove){ $(this).mousedown(function(e){ $("#" + options.tooltipId).remove(); $(this).attr("title",title); }); } }); }; })(jQuery);