티스토리 뷰

* 적용 후 위아래양옆 확인 해보기

 

function image_popup(url) {

 var imgObj = new Image();
 imgObj.src = url;
 imageWin = window.open("", "profile_popup", "width=" + imgObj.width + "px, height=" + imgObj.height + "px"); 
 imageWin.document.write("<html><body style='margin:0'>"); 
 imageWin.document.write("<a href=javascript:window.close()><img src='" + imgObj.src + "' border=0></a>"); 
 imageWin.document.write("</body><html>"); 
 imageWin.document.title = imgObj.src;

}

댓글