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

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呀,气晕了
...全文
75 点赞 收藏 8
写回复
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>
回复
发动态
发帖子
ASP
创建于2007-09-28

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
申请成为版主
社区公告
暂无公告