Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".link_image").live("click", function(e){
- e.preventDefault();
- var i = $(this)
- .find("img")
- .attr("src")
- .replace("_70","_600");
- $("<div>")
- .on("click", function(){
- $(this).remove();
- });
- .css({
- position: 'fixed',
- top: 0,
- left: 0,
- width: "100%",
- height: "100%",
- background: "rgba(0,0,0,.8) url(" + i + ") no-repeat 50% 50%",
- backgroundSize: "contain",
- zIndex: 9999999999
- })
- .appendTo("body");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement