复制程式
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,win_width,win_height) {
var PosX = (screen.width-win_width)/2;
var PosY = (screen.Height-win_height)/2;
features = "width="+win_width+",height="+win_height+",top="+PosY+",left="+PosX;
var newwin = window.open(theURL,winName,features);
newwin.focus();
}
//-->
</script>
</head>
<body>
<a href='javascript:;' onClick=MM_openBrWindow(Ƈ.jpg','test',400,300)><img border="0" src="1_small.jpg" width="32" height="21"></a><br>
<a href='javascript:;' onClick=MM_openBrWindow(ƈ.jpg','test',400,300)><img border="0" src="2_small.jpg" width="32" height="21"></a>
</body>
</html>
跟大家分享