在 右框架 点击链接 然后在右框架打开,有办法吗?

msdner 2004-08-18 06:47:02

<FRAMESET rows="*" cols="249,*" framespacing="0" border="2" frameborder="yes">
<FRAME name="left" src="Index.asp?Action=Lft" scrolling="no" noresize marginwidth="10" marginheight="10">
<FRAME name="right" src="Index.asp?Action=Rgt" scrolling="auto" noresize marginwidth="10" marginheight="10">
</FRAMESET>

我想在right 子框架点击链接,然后在该子框架中打开,应该怎么做?
...全文
100 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
msdner 2004-08-18
  • 打赏
  • 举报
回复
谢谢楼上的,我的确是从网页上复制下来的,我试试。
mjpclab 2004-08-18
  • 打赏
  • 举报
回复
你的代码可能是从网页上复制下来的,有一些看不见的非ascii字符,把空格全删了,容后重新填入
msdner 2004-08-18
  • 打赏
  • 举报
回复
谢谢两位,这个问题解决了。

请问有没有“创建下拉列表框,用于选择浏览页码”的办法,我是在分页的时候要到这个功能的。我这样做,提示以下错误:
Microsoft VBScript 编译器错误 错误 '800a0408'

无效字符

/1/index.asp,行 165

Response.Write("</form>") 
------------------------^



<script language=javascript>
function PageCurrent()
{ //Pages.asp是本程序的文件名
document.MyForm.action='Index.asp?Action=Rgt&Page='+(document.MyForm.CurrentPage.selectedIndex+1)
document.MyForm.submit();
}
</Script>

<%
Response.Write("<form method=Get name=MyForm>")
Response.Write("第<select size=1 name=CurrentPage onchange=PageCurrent()>")
For j=1 to objrs2.PageCount
if objrs2.AbsolutePage=j then
Response.Write("<option selected>"&j&"</option>") ''当前页码
else
Response.Write("<option>"&j&"</option>")
end if
Next
Response.Write("</select>页/共"&objrs2.PageCount&"页 共"&objrs2.RecordCount&"条记录</font><p>")
Response.Write("</form>") 
jiangjiewebsky 2004-08-18
  • 打赏
  • 举报
回复
<a href="..." target="right">
leocool 2004-08-18
  • 打赏
  • 举报
回复
去掉target属性
bluemoon0001 2004-08-18
  • 打赏
  • 举报
回复
直接写就行了,默认的就是在当前窗口打开链接的,如果要是在别的窗口中打开就用下面的这个:
<a href="..." target="窗口名">

28,391

社区成员

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

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