急,在线等待!~~~~~~~~~~

yijuan 2004-04-05 11:06:55
<% 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>
这是我上面的内容



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

这是对函数的调用
可根本就不进行函数的判断,请问是怎么回事呀
...全文
32 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
yijuan 2004-04-05
  • 打赏
  • 举报
回复
我就是想象QQ游戏里面的一样,当进入里面时,要输入用户名和密码
dayanmao 2004-04-05
  • 打赏
  • 举报
回复
NOT(session("passwed"))
yijuan 2004-04-05
  • 打赏
  • 举报
回复
<%@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">
<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>
dotnet东哥 2004-04-05
  • 打赏
  • 举报
回复
程序正常!
银狐被占用 2004-04-05
  • 打赏
  • 举报
回复
<% if session("passwed")=false then%>
<script language="JavaScript">
show("loginput.asp")
</script>
<% end if%>

这段代码是在哪写的?
huhan3 2004-04-05
  • 打赏
  • 举报
回复
改为if session("passwed")="" then
tzgpxl 2004-04-05
  • 打赏
  • 举报
回复
建议一种查错方案,
加上
response.write(""&session("passwed")&"")
把下面的代码去掉
<% if session("passwed")=false then%>
<script language="JavaScript">
show("loginput.asp")
</script>
<% end if%>
先检查一下你的session(""&passwed&"")是不是为false
yangyanli 2004-04-05
  • 打赏
  • 举报
回复
不明白你在说什么

28,409

社区成员

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

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