为什么!!等待~~~~~~~~

yijuan 2004-04-05 11:50:31
<%@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>


当IF 为真时,为什么不调用show("loginput.asp")
打开loginput.asp呀,气晕了
...全文
115 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
threezxw 2004-04-05
  • 打赏
  • 举报
回复
这个我也不理解
yijuan 2004-04-05
  • 打赏
  • 举报
回复
"烦啊”说的对,这样是弹出窗口了
可是当我在<body>里面假如加入东西时,就弹不出来了例如我添加的是一个是下面的程序
<body topmargin="0">
<table width="760" border="0" align="center" cellPadding="0" cellSpacing="0" background="images/topbg.gif" bgColor="#f7f7f7">
<tr>
<td vAlign=top align=left width=15 rowSpan=2><IMG height=92 src="images/topLeft.gif" width=15></td>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr bgcolor="#cccccc"><td colspan="3" height="1"><img height="1" src="images/shim.gif"></td> </tr>
<tr> <td width="400" height=70><IMG height=70 src="images/logo.gif" width=400 border=0></td>
<td >
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="250" height="60">
<param name="movie" value="images/Banner.swf">
<param name="quality" value="high">
<embed src="images/Banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="250" height="60"></embed></object>
</td>
<td>
<table align="center"border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr align="center" valign="middle">
<td> </td>
<td> </td>
</tr>
</table>
</td>
</table>
</td>
<td vAlign=top align=right width=15 rowSpan=2><IMG height=92 src="images/topRight.gif" width=15></td>
</tr>
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td><a href="index.asp"><img name="homeButton" src="images/button_home_a.gif" onmouseover="this.src='images/button_home_a.gif';" onmouseout="this.src='images/button_home_a.gif';" width="90" height="22" border="0"></A></td>
<td><a href=""><img name="InfoManageButton" src="images/button_InfoManage_b.gif" onmouseover="this.src='images/button_InfoManage_a.gif';" onmouseout="this.src='images/button_InfoManage_b.gif';" width="120" height="22" border="0"></a></td>
<td><a href=""><img name="ScoreManageButton" src="images/button_ScoreManage_b.gif" onmouseover="this.src='images/button_ScoreManage_a.gif';" onmouseout="this.src='images/button_ScoreManage_b.gif';" width="120" height="22" border="0"></a></td>
<td><a href="UserManage.asp"><img name="UserManageButton" src="images/button_UserManage_b.gif" onmouseover="this.src='images/button_UserManage_a.gif';" onmouseout="this.src='images/button_UserManage_b.gif';" width="120" height="22" border="0"></a></td>
</table>
</td>
</tr>
</table>
<table align="center" width="760" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>您现在的位置是:南昌水利水电高等专科学校 >> 学生学籍管理系统 >> 首页</td>
<td>今天是:<% =now()%></td>
<td bgColor=#e2e2e1 width=80> </td>
</tr>
</table>


try52000 2004-04-05
  • 打赏
  • 举报
回复
试试:
直接用

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

try52000 2004-04-05
  • 打赏
  • 举报
回复
试试:
<% if isempty(session("passwed")) then
session("passwed")="no"
else
session("passwed")="yes"
end if
%>


<% if session("passwed")="yes" then%>
<script language="JavaScript">
show("loginput.asp")
</script>
<% end if%>
nffly 2004-04-05
  • 打赏
  • 举报
回复
<% if session("passwed")="" then%>
<script language="JavaScript">
show("loginput.asp")
</script>
<% end if%>
zhuomaocn 2004-04-05
  • 打赏
  • 举报
回复
我用你的代码试了一下,没问题啊,弹出了一个窗口。
a_zhe_20 2004-04-05
  • 打赏
  • 举报
回复
看看输出的HTML代码有没有
<script language="JavaScript">
show("loginput.asp")
</script>
没有的话检测一下session
zhuomaocn 2004-04-05
  • 打赏
  • 举报
回复
加了你的代码还是弹出来啊。
不过你的代码有个</tr>没匹配,在IE中可能没问题,用NC的早期版本,可能就不执行了。


<%@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">
<body topmargin="0">
<table width="760" border="0" align="center" cellPadding="0" cellSpacing="0" background="images/topbg.gif" bgColor="#f7f7f7">
<tr>
<td vAlign=top align=left width=15 rowSpan=2><IMG height=92 src="images/topLeft.gif" width=15></td>
<td>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr bgcolor="#cccccc"><td colspan="3" height="1"><img height="1" src="images/shim.gif"></td> </tr>
<tr> <td width="400" height=70><IMG height=70 src="images/logo.gif" width=400 border=0></td>
<td >
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="250" height="60">
<param name="movie" value="images/Banner.swf">
<param name="quality" value="high">
<embed src="images/Banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="250" height="60"></embed></object>
</td>
<td>
<table align="center"border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr align="center" valign="middle">
<td> </td>
<td> </td>
</tr>
</table>
</td>
</table>
</td>
<td vAlign=top align=right width=15 rowSpan=2><IMG height=92 src="images/topRight.gif" width=15></td>
</tr>
<tr><td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td><a href="index.asp"><img name="homeButton" src="images/button_home_a.gif" onmouseover="this.src='images/button_home_a.gif';" onmouseout="this.src='images/button_home_a.gif';" width="90" height="22" border="0"></A></td>
<td><a href=""><img name="InfoManageButton" src="images/button_InfoManage_b.gif" onmouseover="this.src='images/button_InfoManage_a.gif';" onmouseout="this.src='images/button_InfoManage_b.gif';" width="120" height="22" border="0"></a></td>
<td><a href=""><img name="ScoreManageButton" src="images/button_ScoreManage_b.gif" onmouseover="this.src='images/button_ScoreManage_a.gif';" onmouseout="this.src='images/button_ScoreManage_b.gif';" width="120" height="22" border="0"></a></td>
<td><a href="UserManage.asp"><img name="UserManageButton" src="images/button_UserManage_b.gif" onmouseover="this.src='images/button_UserManage_a.gif';" onmouseout="this.src='images/button_UserManage_b.gif';" width="120" height="22" border="0"></a></td>
</table>
</td>
</tr>
</table>
<table align="center" width="760" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>您现在的位置是:南昌水利水电高等专科学校 >> 学生学籍管理系统 >> 首页</td>
<td>今天是:<% =now()%></td>
<td bgColor=#e2e2e1 width=80> </td>
</tr>
</table>

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

28,390

社区成员

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

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