Sha256: ca2790532287a4a8c1fe3f2d1110090dff00a5360d08c22189094cacdf3b63a8
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 Bytes
Contents
function renderImg(){ xOffset = -20; yOffset = 40; $('.show-row img').hover(function(e){ $( "body" ).append( "<p id='preview'><img src='"+ this.src +"' alt='Image preview' class='img-show' /></p>" ); $("#preview") .css("top",(e.pageY - xOffset) + "px") .css("left",(e.pageX + yOffset) + "px") .fadeIn("slow"); }, function(){ $("#preview").remove(); }); $(".show-row img").mousemove(function(e){ $("#preview") .css("top",(e.pageY - xOffset) + "px") .css("left",(e.pageX + yOffset) + "px"); }); }
Version data entries
4 entries across 4 versions & 1 rubygems