请看看这些代码.如何改后可以实现在同一个窗口打开?

liujun6677 2004-03-10 10:13:27
请看看这些代码.如何改后可以实现在同一个窗口打开?
一旦输入用户和密码进入后,就自动弹出一个目的窗口,如果浏览器屏蔽广告功能打开则看不到目的窗口.而且在原窗口还提示"你已经进入系统,请检查已开启的相应窗口!
『请关闭本窗口』"
点击"『请关闭本窗口』" 后又弹出一个提示窗口说"仅在html帮助中才有此功能" 只有点击X键才能够关闭.很烦人.怎么才能够方便使用呀(--直接打开目的窗口得了)?
代码如下.是asp的!

<!--#INCLUDE FILE="office/sysinc.asp" -->
<%

Response.Buffer = True

Response.ExpiresAbsolute = Now() - 1

Response.Expires = 0

Response.CacheControl = "no-cache"

%>
<html>
<head>
<title>办公系统用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="office/CSS.CSS" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body oncontextmenu="return false" bgcolor="#FFFFFF">
<p> </p>
<table width="800" height="309" border="0" align="center" cellpadding="0" cellspacing="0" background="office/pic/0a.png">
<tr>
<td width="26%" height="79" background="office/pic/0a.png"><table width="100%" height="309" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table></td>
<td width="33%" height="79">
<table width="417" height="309" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="office/pic/0c.png"><form method="POST" action="office/checklogin.asp" >
<table width="200" height="86" border="0" align="right" cellspacing="1">
<center>
<tr>
<td width="100%" align="left" height="22">
<div align="center">   </div></td>
</tr>
<tr>
<td width="100%" align="left" height="38"> 用户名:
<input name="∑ousername" type="text" class="smallInput" id="∑ousername" style="width: 98; height: 18; border-style: solid; border-width: 1" size="16">
<br> 密 码:
<input name="∑opassword" type="password" class="smallInput" id="∑opassword" style="width: 98; height: 18; border-style: solid; border-width: 1" size="16">
</td>
</tr>
</center>
<tr>
<td width="100%" align="left" height="20">
<p align="center">
<input type="submit" value="进入" name="login" class="buttonface">
</p></td>
</tr>
</table>

</form></td>
</tr>
</table></td>
<td width="41%" height="79" background="office/pic/0b.png"><table width="100%" height="309" border="0" cellpadding="0" cellspacing="0" background="office/pic/0b.png">
<tr>
<td background="office/pic/0b.png"> </td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" cellpadding="0">
<tr>
<td><div align="center"><font color="#B5B5FF"><em><strong><%= Application("copyright") %></strong></em><strong> </strong></font></div></td>
</tr>
</table>

</body>
</html>

...全文
73 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,391

社区成员

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

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