테스트 사이트 - 개발 중인 베타 버전입니다

이윰빌더 갤러리게시판 이미지 클릭시 새창말고 바로 원본사이즈보려고 하는데요 채택완료

dou 6년 전 조회 2,522

 

지금 위에처럼 이미지를 클릭하면 원본사이즈로보기 나오면서 새창으로 열리는데

클릭하면 바로 그자리에서 볼수 있게하려면 어디를 수정해야 할까요?

이미지는 긴쪽이 1024로 리사이즈해서 올리고 있습니다.

 

 

function close_modal(wr_id) {     window.parent.closeModal(wr_id); }

function board_move(href) {     window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1"); }

$(function() {     $('.board-view-file-conts img').parent().attr('class', 'view-img-popup').removeAttr('target');     $('.view-img-popup').each(function() {         var dataSource = $(this).attr('href');         $(this).attr('data-source', dataSource);     });     $('.board-view-file-conts img').each(function() {         var imgURL = $(this).attr('src');         $(this).parent().attr('href', imgURL);     });     $('.view-img-popup').magnificPopup({         type: 'image',         closeOnContentClick: true,         mainClass: 'mfp-img-mobile',         image: {             verticalFit: true,             titleSrc: function(item) {                 return '· 원본 이미지 보기';             }         }     });

    if($('.board-view-con img').parent().hasClass('view_image')) {         $('.board-view-con img').parent().attr('class', 'view-image-popup').removeAttr('target');         $('.view-image-popup').each(function() {             var dataSource = $(this).attr('href');             $(this).attr('data-source', dataSource);         });         $('.board-view-con img').each(function() {             var imgURL = $(this).attr('src');             $(this).parent().attr('href', imgURL);         });         $('.view-image-popup').magnificPopup({             type: 'image',             closeOnContentClick: true,             mainClass: 'mfp-img-mobile',             image: {                 verticalFit: true,                 titleSrc: function(item) {                     return '· 원본 이미지 보기';                 }             }         });     } else {         $('.board-view-con img').wrap('');         $('.board-view-con img').each(function() {             var imgURL = $(this).attr('src');             $(this).parent().attr('href', imgURL);         });         $('.view-image-popup').magnificPopup({             type: 'image',             closeOnContentClick: true,             mainClass: 'mfp-img-mobile',             image: {                 verticalFit: true             }         });     }

    // 이미지 리사이즈     $(".board-view-atc").viewimageresize();  

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트

bbs/view.img.php 파일쪽인가 파일명은 까먹었네요 그부분에서 수정해주면될듯합니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인