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

이미지 클릭시 팝업으로 띄우는 방법 채택완료

사랑둥이 9년 전 조회 29,854

이미지를 클릭시 새창이 아니라 팝업으로 띠우는 방법좀 알려주세요? 

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

답변 2개

채택된 답변
+20 포인트

<img src="이미지경로" style="cursor:pointer" onclick="window.open('새창페이지URL','asdfo8or','scrollbars=yes,width=417,height=385,top=10,left=20');"> 

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

답변에 대한 댓글 1개

사랑둥이
9년 전
한번에 해결되었습니다. 감사합니다.

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

플라이
9년 전

자바스크립트로 아래와 같이 연동하셔야 합니다.

</p><p><font color="#8e8e8e"><script language="javascript">
function new(){
</font> <font color="#ff7635">window.open</font><font color="#8e8e8e">("</font><font color="#0000ff">test.asp</font><font color="#8e8e8e">","</font><font color="#0000ff">new</font><font color="#8e8e8e">", 
"</font><font color="#0000ff">width=300, height=200, left=30, top=30, 
scrollbars=no,titlebar=no,status=no,resizable=no,fullscreen=no</font><font color="#8e8e8e">");</font>
<font color="#8e8e8e">}
</script></font></p><p><font color="#8e8e8e"><img src="이미지주소" onClick="new()" style="cursor:hand"/></font></p><p>

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

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

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

로그인