我想让BAIDU,不要撑满整个网页啊.

解决方案 »

  1.   

    分两个框架页。
    第一个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>
      

  2.   

    不要那么复杂,在 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>   
        
      

  3.   

    关注  baidu 那个 没发现什么解决办法
      

  4.   

    百度对这个肯定是过滤掉了,随便让别人盗用它的搜索引擎,谁愿意呀,在.asp,.aspx能用
      

  5.   

    TO:Go_Rush(我的技术博客http://ashun.cnblogs.com/) ( ) 你的还是不行啊?
      

  6.   

    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>   
      

  7.   

    是啊,就在你贴出来的代码中<head>部分加入以下三行<script>
          var location;
       </script> 
    其他地方都没有改
      

  8.   

    to:Go_Rush(我的技术博客http://ashun.cnblogs.com/)
    我明白你的方法,是针对这句话的,对吗?if (top.location != self.location) {top.location=self.location;}但的确没用啊.
      

  9.   

    要用 http://localhost/main.htm 的方式打开才有用。你直接双击 main.htm 是没效果的