论坛: 网站建设 标题: 弹出无工具栏网页问题 复制本贴地址    
作者: loneyan [loneyan]    论坛用户   登录
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script>

<!--
 function openwin(url){
  
  window.open(url,"newwindow","toolbar=no,resizable=no,location=no,status=no")
}
-->
</script>
</head>

<body>

<a href="#" onclick="openwin('http://ffweb.8u8.com/hhgg.htm')">
行会公告</a>

</body>

</html>


我这段代码 可以改变弹出    视窗    的大小吗?

[此贴被 孤雁南飞(loneyan) 在 03月24日23时55分 编辑过]

地主 发表时间: 2003-03-24 23:21:55

回复: ingtai [ingtai]   论坛用户   登录
<script language=JavaScript>                                
window.open("http://sms.3558.com","_bbs"scrollbars=no,toolbar=no,menubar=no,location=no,status=no,resizable=no,width=320,height=215');window.focus()                                
</script>

B1层 发表时间: 03/25 08:54

回复: loneyan [loneyan]   论坛用户   登录
你这个是自动弹出的广告吧就好象错误代码

我自己 在
window.open(url,"newwindow","toolbar=no,resizable=no,location=no,status=no")
里加入 了宽度高度限制就可以了! 呵呵
window.open(url,"newwindow","width=600,height=450","toolbar=no,resizable=no,location=no,status=no")


B2层 发表时间: 03/26 08:29

回复: echoding [echoding]   论坛用户   登录
<html>
<body>
<SCRIPT LANGUAGE="JavaScript">
<!--
function centerWindow() {
if (document.all)
var xMax = screen.width, yMax = screen.height;
else
if (document.layers)
var xMax = window.outerWidth, yMax = window.outerHeight;
else
var xMax = 640, yMax=480;

var xOffset = (xMax - 483)/2, yOffset = (yMax - 320)/2;

window.open('http://iglu.cz/echoding/war1.html','myExample7', 'width=483,height=320,screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');
}

centerWindow();
//-->
</SCRIPT></body>
</html>







[此贴被 echoding(echoding) 在 03月28日01时26分 编辑过]

B3层 发表时间: 03/26 15:40

论坛: 网站建设

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号