怎样解决这个问题?急! 最后40分,立刻结帖. 我想让BAIDU,不要撑满整个网页啊. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 分两个框架页。第一个myFrame.htm<frameset name="topframe" border="0" cols="160,12,*" frameborder="0" framespacing="0"><frameset rows="102, *" border="0" framespacing="0" frameborder="0"><frame name="s" src="top.htm" noresize border="0" framespacing="0" frameborder="0" scrolling="no"><frame name="s" src="left.htm" scrolling="auto"><frame name="s" src="Main.htm" scrolling="auto"></frameset>第二个Main.htm<frameset name="topframe" border="0" cols="12,*" frameborder="0" framespacing="0"><frame name="bar" src="bar.html" noresize frameborder="0" marginwidth="0" marginheight="0" scrolling="no"><frame name="right" src="http://www.baidu.com/s?wd=程序员&cl=3" noresize frameborder="0" marginwidth="2" marginheight="0" scrolling="auto"></frameset> 不要那么复杂,在 mian.htm 定义一个 location 变量就可以了 <script> var location; </script> 代码如下<html> <head> <title></title> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <script> var location; </script> </head> <frameset name="topframe" border="0" cols="160,12,*" frameborder="0" framespacing="0"> <frameset rows="102, *" border="0" framespacing="0" frameborder="0"> <frame name="s" src="top.htm" noresize border="0" framespacing="0" frameborder="0" scrolling="no"> <frame name="s" src="left.htm" scrolling="auto"> </frameset> <frame name="bar" src="bar.html" noresize frameborder="0" marginwidth="0" marginheight="0" scrolling="no"> <frame name="right" src="http://www.baidu.com/s?wd=程序员&cl=3" noresize frameborder="0" marginwidth="2" marginheight="0" scrolling="auto"> </frameset> <noframes> 此为框架网页 </noframes> </html> 关注 baidu 那个 没发现什么解决办法 百度对这个肯定是过滤掉了,随便让别人盗用它的搜索引擎,谁愿意呀,在.asp,.aspx能用 TO:Go_Rush(我的技术博客http://ashun.cnblogs.com/) ( ) 你的还是不行啊? TO:Go_Rush(我的技术博客http://ashun.cnblogs.com/)是不是,把以下代码,存成1个HTML就可以了?<html> <head> <title></title> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <script> var location; </script> </head> <frameset name="topframe" border="0" cols="160,12,*" frameborder="0" framespacing="0"> <frameset rows="102, *" border="0" framespacing="0" frameborder="0"> <frame name="s" src="top.htm" noresize border="0" framespacing="0" frameborder="0" scrolling="no"> <frame name="s" src="left.htm" scrolling="auto"> </frameset> <frame name="bar" src="bar.html" noresize frameborder="0" marginwidth="0" marginheight="0" scrolling="no"> <frame name="right" src="http://www.baidu.com/s?wd=程序员&cl=3" noresize frameborder="0" marginwidth="2" marginheight="0" scrolling="auto"> </frameset> <noframes> 此为框架网页 </noframes> </html> 是啊,就在你贴出来的代码中<head>部分加入以下三行<script> var location; </script> 其他地方都没有改 to:Go_Rush(我的技术博客http://ashun.cnblogs.com/)我明白你的方法,是针对这句话的,对吗?if (top.location != self.location) {top.location=self.location;}但的确没用啊. 要用 http://localhost/main.htm 的方式打开才有用。你直接双击 main.htm 是没效果的 Repeater间距的问题 关于内容页调用母版页的控件 表单自动提交的问题 |M| 多条记录合并成一条记录大家看看这种情况的时候会用什么方法 Web.config配置问题 请问如何获得DataSet里面的某一个cell 是否需要手动关闭数据库连接? .net开发中做数据采集遇到耗时操作的问题,有没有好的解决方案? RegistryKey.SetValue写注册表抛出异常:无法写入到注册表项。。。。 如果AJAX表单提交,参数出现 HTML标签,有什么好的方法解决。 Hashtable删除数据问题 求文件签收系统的合理表结构
第一个myFrame.htm<frameset name="topframe" border="0" cols="160,12,*" frameborder="0" framespacing="0">
<frameset rows="102, *" border="0" framespacing="0" frameborder="0">
<frame name="s" src="top.htm" noresize border="0" framespacing="0" frameborder="0" scrolling="no">
<frame name="s" src="left.htm" scrolling="auto">
<frame name="s" src="Main.htm" scrolling="auto">
</frameset>第二个Main.htm
<frameset name="topframe" border="0" cols="12,*" frameborder="0" framespacing="0">
<frame name="bar" src="bar.html" noresize frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
<frame name="right" src="http://www.baidu.com/s?wd=程序员&cl=3" noresize frameborder="0" marginwidth="2" marginheight="0" scrolling="auto">
</frameset>
var location;
</script>
代码如下<html>
<head>
<title></title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<script>
var location;
</script>
</head>
<frameset name="topframe" border="0" cols="160,12,*" frameborder="0" framespacing="0">
<frameset rows="102, *" border="0" framespacing="0" frameborder="0">
<frame name="s" src="top.htm" noresize border="0" framespacing="0" frameborder="0" scrolling="no">
<frame name="s" src="left.htm" scrolling="auto">
</frameset>
<frame name="bar" src="bar.html" noresize frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
<frame name="right" src="http://www.baidu.com/s?wd=程序员&cl=3" noresize frameborder="0" marginwidth="2" marginheight="0" scrolling="auto">
</frameset>
<noframes>
此为框架网页
</noframes>
</html>
是不是,把以下代码,存成1个HTML就可以了?<html>
<head>
<title></title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<script>
var location;
</script>
</head>
<frameset name="topframe" border="0" cols="160,12,*" frameborder="0" framespacing="0">
<frameset rows="102, *" border="0" framespacing="0" frameborder="0">
<frame name="s" src="top.htm" noresize border="0" framespacing="0" frameborder="0" scrolling="no">
<frame name="s" src="left.htm" scrolling="auto">
</frameset>
<frame name="bar" src="bar.html" noresize frameborder="0" marginwidth="0" marginheight="0" scrolling="no">
<frame name="right" src="http://www.baidu.com/s?wd=程序员&cl=3" noresize frameborder="0" marginwidth="2" marginheight="0" scrolling="auto">
</frameset>
<noframes>
此为框架网页
</noframes>
</html>
var location;
</script>
其他地方都没有改
我明白你的方法,是针对这句话的,对吗?if (top.location != self.location) {top.location=self.location;}但的确没用啊.