diff --git a/script.js b/script.js index 2645b14..001241a 100644 --- a/script.js +++ b/script.js @@ -29,8 +29,8 @@ jQuery(function () { } else { c = ""; } - jQuery("body").append("

Image preview" + c + "

"); - jQuery("#__filelist_preview") + jQuery("body").append("

Image preview" + c + "

"); + jQuery("#plugin__filelist_preview") .css("top", (e.pageY - xOffset) + "px") .css("left", (e.pageX + yOffset) + "px") .css("max-width", "300px") @@ -39,10 +39,10 @@ jQuery(function () { .fadeIn("fast"); }, function () { this.title = this.t; - jQuery("#__filelist_preview").remove(); + jQuery("#plugin__filelist_preview").remove(); }); jQuery("img.filelist_preview").mousemove(function (e) { - jQuery("#__filelist_preview") + jQuery("#plugin__filelist_preview") .css("top", (e.pageY - xOffset) + "px") .css("left", (e.pageX + yOffset) + "px") .css("position", "absolute");