spoky 2003-08-21 03:59:19
<img src="change.gif" onclick=openother();>
img在frame的leftframe
点击这个Img,在frametop打开其他页面。
...全文
78 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangking 2003-09-01
  • 打赏
  • 举报
回复
<img src="change.gif" onclick="openother()">
<script language=javascript>
function openother()
{
parent.frametop.location="xxxx.asp"
}
</script>
spoky 2003-09-01
  • 打赏
  • 举报
回复
问题解决了。应该是parent.frame.top.href=""
关键是要多一个parent来获取
spoky 2003-08-21
  • 打赏
  • 举报
回复
但是我在写的时候,提示错误:没有或者缺少frametop这个对象
pp4u 2003-08-21
  • 打赏
  • 举报
回复
frametop.location.href="xxx.asp"
somecom 2003-08-21
  • 打赏
  • 举报
回复
同意楼上!
linday 2003-08-21
  • 打赏
  • 举报
回复
<script>
frametop.location.href="xxxx.asp"
</script>
ttt2 2003-08-21
  • 打赏
  • 举报
回复
frametop.location.href="a.asp"

28,407

社区成员

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

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