<div id=game_betslip style="DISPLAY: block; RIGHT: 109px; OVERFLOW: visible; WIDTH: 260px;  POSITION: absolute; top: 396px;">
  <table cellspacing=0 cellpadding=0 width=250 align=right border=0>
    <tr>
      <td width=250><table cellspacing=1 cellpadding=0 width=242 bgcolor=#5388CE border=0>
        <tr>
          <td bgcolor=#5388CE><table width="250" border=0 cellpadding=0 cellspacing=1>
            <tbody>
              <tr>
                <td><img height=26 alt="" src="inc/betslip_files/selp.gif" width=250 usemap=#Map 
                  border=0></td>
              </tr>
            </tbody>
          </table>
                <table width="250" border=0 cellpadding=5 cellspacing=0>
                  <form name=regist method=post>
                    <tbody>
                      <tr>
                        <td id=bet_SLIP style="COLOR: #5388CE"><iframe id=FrameBetSlip marginwidth=0 marginheight=0 src="inc/betslip.asp" frameborder=0 width="100%" scrolling=no ><span class="STYLE2"></span></iframe></td>
                      </tr>
                    </form>
                </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
</div></td>
</tr>
</table><script language="JavaScript"> 
         <!-- 
         var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4"); 
         var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4"); 
         function CheckUIElements(){ 
         var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck; 
          
         if ( bNetscape4plus ) { 
         yMenuFrom   = document["game_betslip"].top; 
         yMenuTo     = top.pageYOffset +90; 
         } 
         else if ( bExplorer4plus ) { 
         yMenuFrom   = parseInt (game_betslip.style.top, 10); 
         yMenuTo     = document.body.scrollTop + 20; 
         if (yMenuTo < 90) { yMenuTo =90; } 
         } 
          
         timeoutNextCheck = 90; 
          
         if ( Math.abs (yButtonFrom - (yMenuTo + 0)) < 6 && yButtonTo < yButtonFrom ) { 
         setTimeout ("CheckUIElements()", timeoutNextCheck); 
         return; 
         } 
          
         if ( yButtonFrom != yButtonTo ) { 
         yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 ); 
         if ( yButtonTo < yButtonFrom ) 
         yOffset = -yOffset; 
          
         if ( bNetscape4plus ) 
         document["divLinkButton"].top += yOffset; 
         else if ( bExplorer4plus ) 
         divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset; 
          
         timeoutNextCheck = 10; 
         } 
         if ( yMenuFrom != yMenuTo ) { 
         yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 ); 
         if ( yMenuTo < yMenuFrom ) 
         yOffset = -yOffset; 
          
         if ( bNetscape4plus ) 
         document["game_betslip"].top += yOffset; 
         else if ( bExplorer4plus ) 
         game_betslip.style.top = parseInt (game_betslip.style.top, 10) + yOffset ; 
         timeoutNextCheck = 10; 
         } 
          
         setTimeout ("CheckUIElements()", timeoutNextCheck); 
         } 
          
         function OnLoad() 
         { 
         var y; 
         if ( top.frames.length ) 
         if ( bNetscape4plus ) { 
         document["game_betslip"].top = top.pageYOffset + 100; 
         document["game_betslip"].visibility = "visible"; 
         } 
         else if ( bExplorer4plus ) { 
         game_betslip.style.top = document.body.scrollTop + 100; 
         game_betslip.style.visibility = "visible"; 
         } 
         CheckUIElements(); 
         return true; 
         } 
         OnLoad(); 
         //--> 
         </script> 这段浮动代码现在浮动的位置是 在右侧顶端,随滚动条上下浮动,但是我想让他在右侧中间位置,因为在顶端挡住了相关的连接,请大家帮帮我 应该怎么修改 谢谢

解决方案 »

  1.   

    if ( bNetscape4plus )                                  
    {                                                      
    yMenuFrom   = document["game_betslip"].top;         
    yMenuTo     = top.pageYOffset +300;                  
    }                                                      
    else if ( bExplorer4plus )                             
    {                                                      
    yMenuFrom   = parseInt (game_betslip.style.top, 10);
    yMenuTo     = document.body.scrollTop + 300;        
    }