注册 登录
编程论坛 ASP技术论坛

大家帮我看一段代码 是实现改变窗口大小的

zmhdxy 发布于 2008-03-17 22:00, 595 次点击
response.Write "  <script language='javascript'>  var action;alert('欢迎再次留言,谢谢!'); location.href='IsRegister.asp?action=again';  </script>  "  

然后Isregister.asp中  

function newwindow(str)  
{  
if(str=="again")  
resizeTo(600, 500);  
return true;  
}  

<% str=request("action")%>   
<body style="margin:0" onload="newwindow(str)">   
这段代码是没用的 参数传的是对的
2 回复
#2
madpbpl2008-03-17 23:04
<body style="margin:0" onload="newwindow(request("action"))">
<script language="javascript">
function newwindow(str)  
{
var str
if(str=="again")  
window.resizeTo(600, 500);  
return true;  
}
</script>
#3
zmhdxy2008-03-19 12:31
我知道哪错了
<% str=request("action")%>   
<body style="margin:0" onload="newwindow(<%=str%>)">
也是对的吧

[[it] 本帖最后由 zmhdxy 于 2008-3-19 12:33 编辑 [/it]]
1