1/** 2* 3* simpleTooltip jQuery plugin, by Marius ILIE 4* visit http://dev.mariusilie.net for details 5* 6**/ 7(function($){ $.fn.simpletooltip = function(){ 8 return this.each(function() { 9 var text = $(this).attr("title"); 10 $(this).attr("title", ""); 11 if(text != undefined) { 12 $(this).hover(function(e){ 13 var tipX = e.pageX + 12; 14 var tipY = e.pageY + 12; 15 $(this).attr("title", ""); 16 $("body").append("<div id='simpleTooltip' style='position: absolute; z-index: 100; display: none;' class='"+ $(this).attr("ttClass") +"'>" + text + "</div>"); 17 if($.browser.msie) var tipWidth = $("#simpleTooltip").outerWidth(true) 18 else var tipWidth = $("#simpleTooltip").width() 19 $("#simpleTooltip").width(tipWidth); 20 $("#simpleTooltip").css("left", tipX).css("top", tipY).fadeIn("medium"); 21 }, function(){ 22 $("#simpleTooltip").remove(); 23 $(this).attr("title", text); 24 }); 25 $(this).mousemove(function(e){ 26 var tipX = e.pageX + 12; 27 var tipY = e.pageY + 12; 28 var tipWidth = $("#simpleTooltip").outerWidth(true); 29 var tipHeight = $("#simpleTooltip").outerHeight(true); 30 if(tipX + tipWidth > $(window).scrollLeft() + $(window).width()) tipX = e.pageX - tipWidth; 31 if($(window).height()+$(window).scrollTop() < tipY + tipHeight) tipY = e.pageY - tipHeight; 32 $("#simpleTooltip").css("left", tipX).css("top", tipY).fadeIn("medium"); 33 }); 34 } 35 }); 36}})(jQuery); 37 38$(document).ready(function(){ 39 $(".jqTooltip").simpletooltip(); 40});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.