我是菜鸟,不懂代码,希望各位高手告诉我怎么修改。先谢谢大家了。
目前页面刷新效果如图1需要刷新后,页面置顶如图2-------------------------------------------------------
代码如下
<?php
include("config.php");
include("license.php");
$fr=2;
$frs=31;//==标记已读信息 更新========================================
if($_GET["fgnid"]!=""){
$fgnid = filter(safe_convert(inject_check($_GET['fgnid']))); 
$query = $db->query("update ".$tab."fgn set sn2='b' WHERE id='".$fgnid."' ");
}
if($_GET['ts']==""){$ts=1;}else{$ts=$_GET['ts'];}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php include("meta.php");//?>
<link href="_css/style.css" rel="stylesheet" type="text/css" />
<!--[if lt IE 7.]><script defer type="text/javascript" src="_js/pngfix.js"></script><![endif]-->
<script type="text/javascript" language="JavaScript" src="_js/swfobject.js"></script>
<script type="text/javascript" language="JavaScript" src="_js/jquery.js"></script>
<script type="text/javascript" language="JavaScript" src="_js/top_menu_filter.js"></script>
</head>
<body id="index">
<h1 class="none">人脉网 - 首 页</h1>
<div id="container">
  <?php include("header.php");//头部?>
  <div id="content">
    <table width="100%" border="0" cellspacing="2" cellpadding="0">
      <tr>
        <td width="540" valign="top"><table cellspacing="0" cellpadding="0" width="100%" border="0">
                  <tr>
                    <td align="left" width="7"><img height="7" src="images/blue01.gif" width="7" /></td>
                    <td background="images/blue_top.gif" height="7"><img height="1" src="images/clear.gif" width="1" /></td>
                    <td align="right" width="7"><img height="7" src="images/blue02.gif" width="7" /></td>
                  </tr>
                  <tr>
                    <td background="images/blue_left.gif">&nbsp;</td>
                    <td align="middle"><?php include("t3_x_t.php");//圈子基本信息?></td>
                    <td background="images/blue_right.gif">&nbsp;</td>
                  </tr>
                  <tr>
                    <td valign="bottom" align="left" 
                  background="images/blue_left.gif"><img height="7" 
                  src="images/blue03.gif" width="7" /></td>
                    <td background="images/blue_bottom.gif">
                      <div class="tabsx">
                        <ul class="tabNavigationx">
                          <li><a href="t3_x.php?id=<?php echo $id?>"><span>
                            <div class="nw">圈子空间</div>
                            </span></a></li>
                          <li><a href="t3_x1.php?id=<?php echo $id?>" class="selected"><span>
                            <div class="nw">圈子留言</div>
                            </span></a></li> 
                          <li><a href="t3_x3.php?id=<?php echo $id?>"><span>
                            <div class="nw">圈子成员</div>
                            </span></a></li>
                          <li><a href="t3_xphoto.php?id=<?php echo $id?>"><span>
                            <div class="nw">圈子相册</div>
                            </span></a></li><?php if($thread["aid"]==$uid or $thread_fgu["s1"]=="2"){ ?>
                          <li><a href="t3_x4.php?id=<?php echo $id?>"><span>
                            <div class="nw">圈子邀请</div>
                            </span></a></li>
                    <li><a href="t3_xa.php?id=<?php echo $id?>"><span>
                      <div class="nw">圈子管理</div>
                      </span></a></li>
                      
                    <?php } ?>
                            
                        </ul>
                      </div></td>
                    <td valign="bottom" align="right" 
                  background="images/blue_right.gif"><img height="7" 
                  src="images/blue04.gif" width="7" /></td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="5" cellpadding="0">
  <tr>
    <td></td>
    </tr>
</table>
<?php           
if($fgu=="yes"){
?><table width="100%" cellpadding="0" cellspacing="0">
            <tr>
              <td>
              <IFRAME allowtransparency='true' name=iframeName src="t3_x1_<?php echo $ts?>.php?id=<?php echo $id?>&fgclassid=<?php echo $_GET['fgclassid']?>&title=<?php echo rawurlencode($_GET['title'])?>&fgnid=<?php echo $_GET['fgnid']?>#a" frameBorder="0" width="100%" scrolling="no" valign="top" onload="this.height=0;var fdh=(this.Document? this.Document.body.scrollHeight:this.contentDocument.body.offsetHeight);this.height=(fdh>450?fdh:450)"></IFRAME>
            </td>
            </tr>
          </table>
                        
          
<?php }else{  ?>    
                
  
  
<table cellspacing="0" cellpadding="0" width="100%" border="0">
          <tr>
            <td valign="top" width="8" 
                            background="images/blue2_left.gif"><img 
                              src="images/blue2_01.gif" /></td>
            <td align="center" class="blue2_top" id="blue2_top" 
                            style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 15px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="right"><span class="blue2_top" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 15px"><img src="images/confirm.gif" width="32" height="32" /></span></td>
                        <td align="left"><span class="blue2_top" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 15px">只有本圈子的成员才可以查看详细资料。</span></td>
                      </tr>
                    </table>
                    <span class="blue2_top" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 15px"></span></td>
                </tr>
              </table></td>
            <td valign="top" width="8" 
                            background="images/blue2_right.gif"><img 
                              src="images/blue2_02.gif" /></td>
          </tr>
          <tr>
            <td><img src="images/blue2_03.gif" /></td>
            <td class="blue2_bottom" id="blue2_bottom"><img 
                              src="images/blank.gif" /></td>
            <td><img 
                        src="images/blue2_04.gif" /></td>
          </tr>
        </table>  
  
<?php }?>   
                
        </td>
        <td></td>
        <td width="224" valign="top"><?php include("t3_x_r.php");//圈子测栏目?>
        </td>
      </tr>
    </table>
  </div>
</div>
</div>
<?php include("bottom.php");//尾部?>
</body>
</html>qq:5606165

解决方案 »

  1.   

    楼主都没说让哪部份置顶啊= =||
    留言?那个div框?…还是有其他的框架?……
      

  2.   

    圈子留言那部分。现在是刷新的话,圈子留言置顶到浏览器上端,想看上边部分就得用滑轮,我想让整个页面置顶。谢谢了。
    <IFRAME allowtransparency='true' name=iframeName src="t3_x1_ <?php echo $ts?>.php?id= <?php echo $id?>&fgclassid= <?php echo $_GET['fgclassid']?>&title= <?php echo rawurlencode($_GET['title'])?>&fgnid= <?php echo $_GET['fgnid']?>#a" frameBorder="0" width="100%" scrolling="no" valign="top" onload="this.height=0;var fdh=(this.Document? this.Document.body.scrollHeight:this.contentDocument.body.offsetHeight);this.height=(fdh>450?fdh:450)"> </IFRAME>
      

  3.   

    代码没细看,先把这段改为:<IFRAME allowtransparency='true' name=iframeName src="t3_x1_ <?php echo $ts?>.php?id= <?php echo $id?>&fgclassid= <?php echo $_GET['fgclassid']?>&title= <?php echo rawurlencode($_GET['title'])?>&fgnid= <?php echo $_GET['fgnid']?>#a" frameBorder="0" width="100%" scrolling="no" valign="top"</IFRAME>看看有没有效果
    出现这种现象的原因一是设了锚点,二是用JS来实现,我想就这两种,你可以参考着解决下
      

  4.   

    这个应是js控制了,所以看到的不是最顶的部分上js版问一下!
      

  5.   

     <IFRAME allowtransparency='true' name=iframeName src="t3_x1_ <?php echo $ts?>.php?id= <?php echo $id?>&fgclassid= <?php echo $_GET['fgclassid']?>&title= <?php echo rawurlencode($_GET['title'])?>&fgnid= <?php echo $_GET['fgnid']?>#a" frameBorder="0" width="100%" scrolling="no" valign="top" onload="this.height=0;var fdh=(this.Document? this.Document.body.scrollHeight:this.contentDocument.body.offsetHeight);this.height=(fdh>450?fdh:450)"> </IFRAME> 具体的不是很清楚,是不是控制那一部分,然后确定显示的是那个模块..如果是的话,就初始化对应的变量就 OK 了
      

  6.   

    没兴趣研究原因<?php include("bottom.php");//尾部?>
    </body>
    </html> 换成<?php include("bottom.php");//尾部?>
    <script type="text/javascript">$(function(){$(window).scrollTop(0);});</script>
    </body>
    </html>
      

  7.   

    这句加到bottom.php的最后
    <script type="text/javascript">$(function(){$(window).scrollTop(0);}); </script>
      

  8.   

    bottom.php的最后,我这么加了,不行啊。</div>
    <iframe src="lines.php" name="line" frameborder="0" id="line" style="height:0;width:0;"></iframe>
    <script type="text/javascript">$(function(){$(window).scrollTop(0);}); </script> 
      

  9.   

    你的网址是www.myrenmai.com吧,我没看到你有加...