在firefox下提示这个错误错误: stm_bm is not defined 源文件:http://www.114114.com/Js/ClassMenu_3.Js 行:3
<Script LANGUAGE="JavaScript"> if(self!=top){top.location=self.location;} </script> 是防止页面被嵌到frame里; 错误: stm_bm is not defined 源文件:http://www.114114.com/Js/ClassMenu_3.Js 行:3是你COPY的别人的代码出的错误,一般是没有对像引起的
if(self!=top){top.location=self.location;}
</script>
弱弱的问,这句代码干什么用的?
应该是让本页面在顶层窗口打开
if(self!=top){top.location=self.location;}
</script>
这个部分代码是在html tag外的,这样可能就是导致在window尚未初始化时就调用script中的self(本窗口)和top(上级窗口)对象导致出错,试试将这段代码放到head部分。
源文件:http://www.114114.com/Js/ClassMenu_3.Js
行:3
if(self!=top){top.location=self.location;}
</script>
是防止页面被嵌到frame里;
错误: stm_bm is not defined
源文件:http://www.114114.com/Js/ClassMenu_3.Js
行:3是你COPY的别人的代码出的错误,一般是没有对像引起的
IE进入无法指出错误
还是FOX好