<script language="JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); }</script>
<a href="#"><img src="pic.jpg" width="72" height="108" border="0" onClick="MM_openBrWindow('111.htm','','scrollbars=yes,width=518,height=550')"></a>
--javascript放在Head区域 --MM_openBrWindow('新打开的页面地址','','scrollbars=yes/no,width=新打开页面的宽度,height=新打开页面的高度') 注意:scrollbars的值为yes或者no,意思是是否需要滚动条 ------------------------------------ 下面是按你的新代码改的: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> </head>
<body> <tr> <td width="90" rowspan="2" valign="top"><a href="#" onclick="MM_openBrWindow('cp/cs-35ml-5.htm','product','width=400,height=500')"><img src="image/cs/cs_gl_1.gif" width="90" height="186" border="0" /></a></td> </body> </html> |