본문 바로가기

DHTML/Javascript

html없이 이미지 팝업으로 띄우기


==================================

<script>
 function view(x,y,z){
  newin=window.open('',y,z);
  newin.document.write("<html><head><title>:: Image View</title></head><body background='"+x+"' onclick='self.close()' style='cursor:hand' title='CLOSED'></body></html>");
 }
</script>

=================================
해당이미지링크

예)
<area shape="rect" coords="115,31,226,76" href="#" onClick="view('../images/pop1.jpg','','width=600,height=700,left=0,top=0');return false" onFocus="this.blur()">