뷰페이지 이미지 클릭시 팝업 채택완료

그누보드에서 영카트처럼 만들어 달라해서 만드느 

영카트처럼

뷰페이지 이미지 클릭시 파일첨부에서 나오는 이미지 팝업 만들려면 어떻게 하나요 

 

 

<script>

function myFunction() {

var myWindow = window.open("","", "width=200,height=100");

}

</script>

 

<img id="big_image" src="/data/file/<?=$bo_table."/".$view['file'][0]['file']?>" style="width:147px;height:138px;" onclick="myFunction()"> 

 

답변 1개

채택된 답변
+20 포인트

<script>

function myFunction(url) {

var myWindow = window.open(url,"", "width=200,height=100");

}

</script>

 

<img id="big_image" src="/data/file/<?=$bo_table."/".$view['file'][0]['file']?>" style="width:147px;height:138px;" onclick="myFunction('<?=$큰이미지 주소?>')"> 

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

답변에 대한 댓글 1개

<script>
function myFunction() {
var myWindow = window.open("/data/file/<?=$bo_table."/".$view['file'][0]['file']?>","", "width=500,height=400,top=500,left=800,");
}
</script>

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

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

로그인
🐛 버그신고