이미지 크기에 맞는 팝업창 띄우기
페이지 정보
작성자 휴먼 댓글 0건 조회 12,618회 작성일 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>
관련링크
댓글목록
등록된 댓글이 없습니다.