1/* 2 * Url preview script 3 * powered by jQuery (http://www.jquery.com) 4 * 5 * written by Alen Grakalic (http://cssglobe.com) 6 * 7 * for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery 8 * 9 */ 10 11this.screenshotPreview = function(){ 12 /* CONFIG */ 13 14 xOffset = 10; 15 yOffset = 30; 16 17 // these 2 variable determine popup's distance from the cursor 18 // you might want to adjust to get the right result 19 20 /* END CONFIG */ 21 jQuery("a.screenshot").hover(function(e){ 22 this.t = this.title; 23 this.title = ""; 24 var c = (this.t != "") ? "<br/>" + this.t : ""; 25 jQuery("body").append("<p id='screenshot'><img src='"+ this.rel +"' alt='url preview' />"+ c +"</p>"); 26 jQuery("#screenshot") 27 .css("top",(e.pageY - xOffset) + "px") 28 .css("left",(e.pageX + yOffset) + "px") 29 .fadeIn("fast"); 30 }, 31 function(){ 32 this.title = this.t; 33 jQuery("#screenshot").remove(); 34 }); 35 jQuery("a.screenshot").mousemove(function(e){ 36 jQuery("#screenshot") 37 .css("top",(e.pageY - xOffset) + "px") 38 .css("left",(e.pageX + yOffset) + "px"); 39 }); 40}; 41 42 43// starting the script on page load 44 45 46 47jQuery(document).ready(function(){ 48 49 screenshotPreview(); 50 51});
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.