갤러리 게시판 이미지 원본이 새창으로 뜨는걸 막으려면.. 정보
갤러리 게시판 이미지 원본이 새창으로 뜨는걸 막으려면..본문
갤러리 게시판 이미지 원본이 새창으로 뜨는걸 막으려면..
어떻게 해야 할까요...
js에 있는 common.js에 요 소스를
document.oncontextmenu = readBodyFalse;
document.onselectstart = readBodyFalse;
document.ondragstart = readBodyFalse;
oncontextmenu="return false" ondragstart="return false" onkeydown="return false" onselectstart="return false" onload="self.focus()">
function readBodyFalse() {
return false;
}
document.onselectstart = readBodyFalse;
document.ondragstart = readBodyFalse;
oncontextmenu="return false" ondragstart="return false" onkeydown="return false" onselectstart="return false" onload="self.focus()">
function readBodyFalse() {
return false;
}
넣어 봤더니 홈페이지 전체에 적용이 되서
쪽지나 포인트 상황을 못보더라구요 ㅜㅜ
이미지 쪽으로만 적용 하려면 어찌 해야 하는지요 ㅜㅜ
댓글 전체
win=window.open("","image_window",settings);
win.document.open();
win.document.write ("<html><head> \n<meta http-equiv='imagetoolbar' CONTENT='no'> \n<meta http-equiv='content-type' content='text/html; charset="+g4_charset+"'>\n");
var size = "이미지 사이즈 : "+w+" x "+h;
win.document.write ("<title>"+size+"</title> \n");
if(w >= screen.width || h >= screen.height) {
win.document.write (js_url);
var click = "ondblclick='window.close();' style='cursor:move' title=' "+size+" \n\n 이미지 사이즈가 화면보다 큽니다. \n 왼쪽 버튼을 클릭한 후 마우스를 움직여서 보세요. \n\n 더블 클릭하면 닫혀요. '";
}
else
var click = "onclick='window.close();' style='cursor:pointer' title=' "+size+" \n\n 클릭하면 닫혀요. '";
win.document.write ("<style>.dragme{position:relative;}</style> \n");
win.document.write ("</head> \n\n");
win.document.write ("<body leftmargin=0 topmargin=0 bgcolor=#dddddd style='cursor:arrow;'> \n");
win.document.write ("<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center valign=middle><img src='"+img.src+"' width='"+w+"' height='"+h+"' border=0 class='dragme' "+click+"></td></tr></table>");
win.document.write ("</body></html>");
win.document.close();
win.document.open();
win.document.write ("<html><head> \n<meta http-equiv='imagetoolbar' CONTENT='no'> \n<meta http-equiv='content-type' content='text/html; charset="+g4_charset+"'>\n");
var size = "이미지 사이즈 : "+w+" x "+h;
win.document.write ("<title>"+size+"</title> \n");
if(w >= screen.width || h >= screen.height) {
win.document.write (js_url);
var click = "ondblclick='window.close();' style='cursor:move' title=' "+size+" \n\n 이미지 사이즈가 화면보다 큽니다. \n 왼쪽 버튼을 클릭한 후 마우스를 움직여서 보세요. \n\n 더블 클릭하면 닫혀요. '";
}
else
var click = "onclick='window.close();' style='cursor:pointer' title=' "+size+" \n\n 클릭하면 닫혀요. '";
win.document.write ("<style>.dragme{position:relative;}</style> \n");
win.document.write ("</head> \n\n");
win.document.write ("<body leftmargin=0 topmargin=0 bgcolor=#dddddd style='cursor:arrow;'> \n");
win.document.write ("<table width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center valign=middle><img src='"+img.src+"' width='"+w+"' height='"+h+"' border=0 class='dragme' "+click+"></td></tr></table>");
win.document.write ("</body></html>");
win.document.close();
여기가 아닐까요?
우오 되네요 너무 감사 합니다^^
276줄에 추가하면 다른이름 저장불가
<body oncontextmenu='return false' onselectstart='return false' ondragstart='return false'> 를 추가
<body oncontextmenu='return false' onselectstart='return false' ondragstart='return false'> 를 추가