갤러리 게시판 이미지 원본이 새창으로 뜨는걸 막으려면..

갤러리 게시판 이미지 원본이 새창으로 뜨는걸 막으려면..
 
어떻게 해야 할까요...
 
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;
}
 
 
 
 
 
 넣어 봤더니 홈페이지 전체에 적용이 되서
 
쪽지나 포인트 상황을 못보더라구요 ㅜㅜ
 
이미지 쪽으로만 적용 하려면 어찌 해야 하는지요 ㅜㅜ
|

댓글 4개

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();
여기가 아닐까요?
우오 되네요 너무 감사 합니다^^
276줄에 추가하면 다른이름 저장불가
<body oncontextmenu='return false' onselectstart='return false' ondragstart='return false'> 를 추가
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
18년 전 조회 1,561
18년 전 조회 1,542
18년 전 조회 1,608
18년 전 조회 2,397
18년 전 조회 1,751
18년 전 조회 1,846
18년 전 조회 1,562
18년 전 조회 1,590
18년 전 조회 1,540
18년 전 조회 1,615
18년 전 조회 3,665
18년 전 조회 1,776
18년 전 조회 1,792
18년 전 조회 1,592
18년 전 조회 2,063
18년 전 조회 1,562
18년 전 조회 1,681
18년 전 조회 1,620
18년 전 조회 1,563
18년 전 조회 1,453