Popup Window in the center
<script language=”javascript”> <!– function OpenWin() { window.open(“팝업.html”,”ow1″,”width=200,height=200,top=”+(screen.availHeight/2-100)+”,left=”+(screen.availWidth/2-100)+”");//팝업창 중앙에 띄우기 } //–> </script> |
<body leftMargin="0" topMargin=”0″ onload=”OpenWin()”> </body> |
——————————————————————————–
popup.html
<body> <img src=”예쁜버튼그림1.jpg” width=”10″ height=”10″ onClick=”opener.location.href=’http://www.naver.com’;window.close()” style=”cursor:hand”> <img src=”예쁜버튼그림2.jpg” width=”10″ height=”10″ onClick=”window.close()” style=”cursor:hand”> </body> |
Posted in jQuery, Javascript