超级难题,低手别进哟 frame1.htm 或frame2.htm 里加上这么一句:<script language="JavaScript"><!-- if (window == top)top.location.href = "main.htm";// --></script>最后我声明,我是低手。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在frame1.htm和frame2.htm的<head>里分别写上<script>if(parent.frames.length!=2)parent.location="main.htm";</script> 显然楼主是一个超级高手,不过建议下次发贴提问之前先翻翻基本的Javascript的参考书,免得把我们这般菜鸟吓坏了 同楼上所说的,在frame1.htm和frame2.htm的<head>里分别写上<script language="javascript">function init(){if(parent.frames.length!=2)parent.location="main.htm";}</script><body onload="init()"> <script language="JavaScript"><!-- if (!/main\.htm$/.test(top.location.href))top.location.href="main.htm";// --></script> if(top.frameElement==null){ top.location.href = "main.htm";}或if(parent.location.href!="main.htm"){parent.location.href="mai.htm"} 干脆像www.rongshu.com的首页一样,(不过是)模拟一个地址输入栏,也不错 对不起,我说错了,是“简单问题,高手别进哟!”愿意是,在main.htm文件中有一个input,type=hidden, name=dd,我必须测试此对象的取值,但我怎样在frame2.htm测试它呢? 更晕!main.htm 里有了 frame,居然还能再有 form 和 input?超级混合页面,呵呵 菜鸟提问Popup和oPopup的问题 累加的跳出提示框。。。。。。。。。。。救命啊。。。。。。。。。。。。。 请教方法getReal()如何使用!!!! 获取光标位置 jquery 嵌套的each,怎么区分this? javascript中 window.变量名 是全局对象吗? 一个简单实用的轮播器 关于帧结构中关闭窗口的问题(马上结) 密码复杂度的检查 有哪些方法可以用js记录网站的访问量? 在IE中怎样像VS.Net中当鼠标over时弹出,onout时缩进工具箱。 input check,高分相送!
<script>
if(parent.frames.length!=2)
parent.location="main.htm";
</script>
<script language="javascript">
function init()
{
if(parent.frames.length!=2)
parent.location="main.htm";
}
</script><body onload="init()">
<!--
if (!/main\.htm$/.test(top.location.href))top.location.href="main.htm";
// -->
</script>
top.location.href = "main.htm";
}
或
if(parent.location.href!="main.htm"){
parent.location.href="mai.htm"
}
愿意是,在main.htm文件中有一个input,type=hidden, name=dd,
我必须测试此对象的取值,但我怎样在frame2.htm测试它呢?
main.htm 里有了 frame,居然还能再有 form 和 input?
超级混合页面,呵呵