Template:Imagepoplink/doc: Difference between revisions

From BoyWiki
(Is this the js for Imagepoplink?)
 
(Blanked the page)
 
Line 1: Line 1:
ETENNE - IS THIS WHAT YOU ARE USING?


<code>
<poem>
    $(".ImagePopLink").click(function(e) {
                e.preventDefault();
                var $ID = $(this).html();
                var $imagebase = $("#hidImageBase").val();
                var $imagesource = $imagebase + "?ID=" + $ID;
                var $imagelink = "<img style="width: 400px" src="" + $imagesource + "" />";
                $("#divImg").html($imagelink);
                $("#divImg").load();
                $("#PopWindow").css({ "left": $.mouseX(e), "top": $.mouseY(e) + 5 });
                $("#PopWindow").show();
            });
   
            $("#Close").click(function(e) {
                e.preventDefault();
                $("#PopWindow").css({ "left": "0px", "top": "0px" });
                $("#PopWindow").hide();
            });
</poem>
</code>

Latest revision as of 22:18, 8 April 2014