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

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呀,气晕了
...全文
121 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用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>
BOOL ControlsInitialization(HWND hWnd);//从控件句柄初始化 void ObjectInitialization(CComPtr pDisp);//对象初始化 CString TenToHtmlColor(DWORD CurColor);//将整数型的颜色值转换为网页支持的格式 void WebComplete(HWND hWnd,int Timedelay=0/*单位:毫秒 为空则一直等待*/);//确认网页已经完全载入 HWND GetIesHandle(HWND hWnd);//可以指定父句柄获取IES句柄 BOOL GetAllIesHandle(HWND hParent);//获取所有取已打开的所有网页窗口句柄 CArray m_hWnd;//返回的所有已打开窗口句柄数组 int WebpageNavigate(CString Strurl);//载入某个网址。 int WebpageWriteTextStream(CString StrTextStream);//写超文本流。 CComPtr GetWebpageObject();//取网页对象 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页框架(frame)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页按钮(Button)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int ButGetIndex(CString NameOrID);//按钮取索引返回第一个满足条件的索引值,如果失败返回0 CString GetButName(int i);//获取指定索引按钮元素name(名称) CString GetButId(int i);//获取指定索引按钮元素id int GetButCount();//返回网页内所有按钮的数目 int ButClick(int i);//按钮按索引点击成功返1失败返回0 CString GetButHtml(int i);//获取指定索引按钮元素代码 CString GetButText(int i);//获取指定索引按钮元素文本 CComPtr Object_GetButObject(int i);//获取指定索引按钮对象 CString GetButValue(int i);//获取指定索引按钮标题 CString GetButType(int i);//获取指定索引按钮(Button)的类型(type),“button”、“submit”、“reset” /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页Div~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int GetDivCount();//返回网页内所有Div的数目 CComPtr Object_GetDivObject(int i);//获取指定索引DIV对象 CString GetDivHtml(int i);//获取指定索引Div元素代码 CString GetDivText(int i);//获取指定索引Div元素文本 CString GetDivName(int i);//获取指定索引Div元素name(名称) CString GetDivId(int i);//获取指定索引Div元素id int GetDivIndex(CString NameOrID);////Div取索引返回第一个满足条件的索引值,如果失败返回0 int DivClick(int i);//Div按索引点击成功返1失败返回0 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页隐藏表单(hidden)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int GetHiddenCount();//返回网页内所有隐藏表单的数目 CString GetHiddenName(int i);//获取指定索引隐藏表单元素name(名称) CString GetHiddenId(int i);//获取指定索引隐藏表单元素id CString GetHiddenValue(int i);//获取指定索引隐藏表单元素标题 int GetHiddenIndex(CString NameOrID);////隐藏表单取索引返回第一个满足条件的索引值,如果失败返回0 CComPtr Object_GetHiddenObject(int i);//获取指定索引隐藏表单对象 CString GetHiddenHtml(int i);//获取指定索引隐藏表单元素代码 CString GetHiddenText(int i);//获取指定索引隐藏表单元素文本 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页表格(table)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int GetTableCount();//返回网页内所有表格的数目 CString GetTableName(int i);//获取指定索引表格元素name(名称) CString GetTableId(int i);//获取指定索引表格元素id int GetTableIndex(CString NameOrID);//表格取索引返回第一个满足条件的索引值,如果失败返回0 CString GetTableHtml(int i);//获取指定索引表格元素代码 CString GetTableText(int i);//获取指定索引表格元素文本 int GetTableCellCount(int i);//获取指定索引表格单元格数量 int GetTableRowCount(int i);//获取指定索引表格的行数 CString GetTableDistributionCount(int i);//返回文本格式:“第1行x列,第2行x列,…,第N行x列” CComPtr Object_GetTableCellObject(int i,int row, int j);//获取单元格元素接口(第一个参数指定第几个表格,第二个参数指定第几行,第三个参数指定第几个单元格) CString GetTableCellText(int i,int row, int j);//获取单元格文本(第一个参数指定第几个表格,第二个参数指定第几行,第三个参数指定第几个单元格) CString GetTableCellHtml(int i,int row, int j);//获取单元格源码(第一个参数指定第几个表格,第二个参数指定第几行,第三个参数指定第几个单元格) CComPtr Object_GetTableObject(int i);//获取指定索引表格对象 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页图片~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ CString GetImageName(int i);//获取指定索引图片元素name(名称) CString GetImageId(int i);//获取指定索引图片元素id int ImageClick(int i);//图片按索引点击成功返1失败返回0 int GetImageIndex(CString NameOrID);////图片取索引返回第一个满足条件的索引值,如果失败返回0 int GetImageCount();//返回网页内所有图片的数目 CString GetImageHref(int i);//获取指定索引图片连接地址 CString GetImageSrc(int i);//获取指定索引图片地址 CBitmap *GetImage(int i=NULL, CString vImageIDorName=NULL,int cx=NULL/*图片宽度*/,int cy=NULL/*图片高度*/);//参数1获取指定索引图片如果为NULL请指定参数2的图片Id或Nname /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页单选框(radio)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ BOOL GetRadioChecked(int i);//检查单选框(radio)是否被选中(checked),1为选中,0为未选中 BOOL SetRadioWhetherSelect(int i,int Select);//设置单选框(radio)选中状态,第一个参数填写第几个单选框(radio)第二个添写是否选中(1为选中,0为未选中) CString GetRadioName(int i);//获取指定索引单选框(radio)元素name(名称) CString GetRadioId(int i);//获取指定索引单选框(radio)元素id CString GetRadioValue(int i);//获取指定索引单选框(radio)元素标题 int GetRadioCount();//返回网页内所有单选框(radio)的数目 CComPtr Object_GetRadioObject(int i);//获取指定索引单选框(radio)对象 int GetRadioIndex(CString NameOrID);//单选框(radio)取索引返回第一个满足条件的索引值,如果失败返回0 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页复选框(checkbox)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ BOOL GetCheckboxChecked(int i);//检查复选框(checkbox)是否被选中(checked),1为选中,0为未选中 BOOL SetCheckboxWhetherSelect(int i,int Select);//设置复选框(checkbox)选中状态,第一个参数填写第几个复选框(checkbox)第二个添写是否选中(1为选中,0为未选中) CString GetCheckboxName(int i);//获取指定索引复选框(Checkbox)元素name(名称) CString GetCheckboxId(int i);//获取指定索引复选框(Checkbox)元素id CString GetCheckboxValue(int i);//获取指定索引复选框(Checkbox)元素标题 int GetCheckboxCount();//返回网页内所有复选框(Checkbox)的数目 CComPtr Object_GetCheckboxObject(int i);//获取指定索引复选框(Checkbox)对象 int GetCheckboxIndex(CString NameOrID);//复选框(Checkbox)取索引返回第一个满足条件的索引值,如果失败返回0 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页组合框(Select)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int GetSelectCount();//返回网页内所有组合框(Select)的数目 int GetSelectOptionCount(int i);//取某个组合框(Select)中的选项(option)的数目 int GetSelectItem(int i);//取组合框(select)现行选中项(0为位置1,1为位置2……) int SetSelectItem(int i,int setect);//选中指定名称的组合框(Select)的指定索引的选项(options) CString GetSelectItemText(int i,int j);//取组合框(Select)中某个选项(options)的文本(value)参数一为第几个组合框第二参数为组合框第几项 CString GetSelectName(int i);//取的某个组合框(Select)的名称(name) CString GetSelectId(int i);//取的某个组合框(Select)的Id int GetSelectIndex(CString NameOrID);//组合框(Select)取索引返回第一个满足条件的索引值,如果失败返回0 CComPtr Object_GetSelectObject(int i);//取的某个组合框(Select)的对象(Object) /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页表单(Form)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int GetFormIndex(CString NameOrID);//表单(Form)取索引返回第一个满足条件的索引值,如果失败返回0 int GetFormCount();//返回网页内所有表单(Form)的数目 CString GetFormName(int i);//取的某个表单(Form)的名称(name) CString GetFormId(int i);//取的某个表单(Form)的Id void GetFormSubmit(int i);//提交某个表单(Form) CComPtr Object_GetFormObject(int i);//取的某个表单(Form)的对象(Object) /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页文本框(Text)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int GetTextboxIndex(CString NameOrID);//文本框(Text)取索引返回第一个满足条件的索引值,如果失败返回0 void SetTextboxText(int i,CString StrTxt);//按索引填写文本框(Text) CString GetTextboxText(int i);//读取某个文本框(Text)内的内容(value) int GetTextboxCount();//返回网页内所有文本框(Text)的数目 CString GetTextboxType(int i);//取得某个文本框(Text)的类型。类型分为“text”、“password”、“file” CString GetTextboxName(int i);//取的某个文本框(Text)的名称(name) CString GetTextboxId(int i);//取的某个文本框(Text)的Id CComPtr Object_GetTextboxObject(int i);//取的某个文本框(Text)的对象(Object) /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页多行文本框(TextArea)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ void SetTextAreaText(int i,CString StrTxt);//按索引填写多行文本框(TextArea)索引从1开始 CString GetTextAreaText(int i);//读取某个多行文本框(TextArea)内的内容(value) int GetTextAreaIndex(CString NameOrID);////多行文本框(TextArea)取索引返回第一个满足条件的索引值,如果失败返回0 int GetTextAreaCount();//返回网页内所有多行文本框(TextArea)的数目 CString GetTextAreaName(int i);//取的某个多行文本框(TextArea)的名称(name) CString GetTextAreaId(int i);//取的某个多行文本框(TextArea)的Id CComPtr Object_GetTextAreaObject(int i);//取的某个多行文本框(TextArea)的对象(Object) /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页超链结(url)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ int LinkClick(int i);//超链结(url)按索引点击成功返1失败返回0 CString GetLinkHref(int i);//获取指定索引超链结(url)地址 int GetLinkCount();//返回网页内所有超链结(url)的数目 int GetLinkIndex(CString NameOrID);//超链结(url)取索引返回第一个满足条件的索引值,如果失败返回0 CString GetLinkHtml(int i);//获取指定索引超链结(url)元素代码 CString GetLinkText(int i);//获取指定索引超链结(url)元素文本 CComPtr Object_GetLinkObject(int i);//取的某个超链结(url)的对象(Object) /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页获取对象(Object)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ CComPtr Object_GetObject_Aggregate(CString tag);//获取基于指定元素名称的对象集合(getElementsByTagName),参数1可添写如:“a”、“table”、“div”、“img”. CComPtr Object_GetObject_NameOrID(CString NameOrId, int i);//按名称或ID取网页元素对象,参数1(元素名称或ID)参数2(0=名称(name),1=ID) CComPtr Object_GetObject_Point(int x, int y);//返回指定 x 和 y 坐标的网页元素对象(elementFromPoint) /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下为网页对象(Object)操作~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ void ObjectOperation_ExecutionEvent(CComPtr pDisp,CString Event);//执行某个网页元素相关的脚本方法,事件名称一般是“onclick” void web_RunScript(CString Script,int type);//在当前网页上执行指定的脚本命令,参数1为脚本,参数2(添写1即为:JavaScript 业写2为:VBScript) void web_InsertCode(CString StrCode);//在网页插入网页HTML代码及自定义内容 void Destruction();

28,409

社区成员

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

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