인터넷정보

새창 띄울때 정 중앙에 열기

알 수 없는 사용자 2007. 10. 17. 18:08
<HTML>
<HEAD>
<TITLE></TITLE>

<script language="javascript">
<!--
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
//-->
</script>

</HEAD>
<BODY>

<CENTER>
<a href="http://oxtag.com/zboard/warning_member.php" onclick="NewWindow(this.href,'name','600','400','yes');return false">새창 중앙에 열기</a>
</CENTER>

</BODY>
</HTML>
반응형