请指点一下,等待!~~~~

yijuan 2004-04-05 01:38:47
请各位运行一下下面的程序,我刚才还可以达到预期效果,就是弹出一个窗口,但现在就不能用了,如果你们运行可以的话,请告诉我,也请告诉我了不能运行的可能的原因
<%@LANGUAGE="VBSCRIPT" %>
<% if isempty(session("passwed")) then
session("passwed")=false
end if
%>
<script language="JavaScript">
function show(url){
window.open( url,"loginput","height=100,sidth=200,top=100,left=300,toolbar=no,menubar=no,scrollbars=no,sesizable=yes,location=no,status=no");
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="home.css" type="text/css">
<title>学籍管理系统</title>
</head>
<body topmargin="0">

<% if session("passwed")=false then%>
<script language="JavaScript">
show("loginput.asp")
</script>
<% end if%>
</body>
</html>

...全文
20 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yijuan 2004-04-05
  • 打赏
  • 举报
回复
这里的false是布尔值,刚才我发出一会,有人运行是可以的,我也就运行结果是可以的

但现在再运行,就没有窗口打开了

请你添加随便的一show里的URL
看能不能弹出窗口了
PPLUNCLE 2004-04-05
  • 打赏
  • 举报
回复


---
你上面的false是个变量吗?如果你要赋个值为false话,就得是
<%@LANGUAGE="VBSCRIPT" %>
<% if isempty(session("passwed")) then
session("passwed")="false"
end if
%>
<script language="JavaScript">
function show(url){
window.open( url,"loginput","height=100,sidth=200,top=100,left=300,toolbar=no,menubar=no,scrollbars=no,sesizable=yes,location=no,status=no");
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="home.css" type="text/css">
<title>学籍管理系统</title>
</head>
<body topmargin="0">

<% if session("passwed")="false" then%>
<script language="JavaScript">
show("loginput.asp")
</script>
<% end if%>
</body>
</html>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧