이미지 크기에 맞는 팝업창 띄우기 > Board Tip

본문 바로가기
 

이미지 크기에 맞는 팝업창 띄우기

페이지 정보

작성자 휴먼 댓글 0건 조회 11,978회 작성일 11-09-27 19:49

본문

<html>
<head>
 <title>BLUEB</title>

<script>
function popimage(imagesrc,winwidth,winheight){
 var look='width='+winwidth+',height='+winheight+','
  popwin=window.open("","",look)
  popwin.document.open()
  popwin.document.write('<title>Image Window</title><body topmargin=0 leftmargin=0><img style=cursor:hand; onclick="self.close()" src="'+imagesrc+'"></body>')
  popwin.document.close()
}
</script>
</head>

<body>

<b>
<a href="#" onClick="popimage('http://www.blueb.co.kr/SRC/javascript/image/img01.jpg',250,167);return false">이미지 팝업 1</a>
<a href="#" onClick="popimage('http://www.blueb.co.kr/SRC/javascript/image/img02.jpg',300,424);return false">이미지 팝업 2</a>


</body>
</html>

댓글목록

등록된 댓글이 없습니다.

Total 59건 2 페이지
게시물 검색