$(function(){ contentImgResize(700); }); function addFavorites() { var title = document.title; var url = document.location.href; if(window.sidebar){ /* Mozilla Firefox Bookmark */ // window.sidebar.addPanel(title, url, ""); alert("Ctrl + D¸¦ ´©¸£½Ã¸é Áñ°Üã±â¿¡ Ãß°¡ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù"); return; }else if(window.external){ /* IE Favorite */ window.external.AddFavorite(url, title); }else if(window.opera && window.print) { /* Opera Hotlist */ alert("Ctrl + D¸¦ ´©¸£½Ã¸é Áñ°Üã±â¿¡ Ãß°¡ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù"); return; }else{ /* Other */ alert("Ctrl + D¸¦ ´©¸£½Ã¸é Áñ°Üã±â¿¡ Ãß°¡ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù"); return; } } function contentImgResize(w){ w = w || 800; $(".contents").find("img").each(function(){ if ($(this).attr('data-resize') == 'T') { //$(this).css("width", w); $(this).css("cursor", "pointer"); $(this).click(function(){ var oImg = new Image(); oImg.src = $(this).attr("src"); var wid=oImg.width; var hei=oImg.height; var scrollbars; if (screen.width < wid){ scrollbars = "yes"; } else{ scrollbars = "no"; } var winPop = window.open("","imgPop","scrollbars="+scrollbars+",width="+wid+", height="+hei+""); winPop.document.write("
"); winPop.document.write("