<SCRIPT language=javascript>    var divshow;
    function divshow() {
        divshow=new Chip("divshow",120,60);
        movechip("divshow");
    }    function Chip(chipname,width,height) {
        this.named=chipname;
        this.w=width;
        this.h=height;
        this.xx=0;
        this.yy=0;
        this.timer1=null;
    }    var chip;
    var timer1;
    function movechip(chipname) {
        eval("chip="+chipname);        pageX=window.document.body.scrollLeft;
        pageY=window.document.body.scrollTop;
        pageW=window.document.body.offsetWidth-40;
        pageH=window.document.body.offsetHeight-20;        chip.xx=pageX+pageW-chip.w;
        chip.yy=pageY+pageH-chip.h;        eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
        eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy); 
        chip.timer1=setTimeout("movechip('"+chip.named+"')",100);
    }</SCRIPT><BODY onload=divshow()><table height=800><tr><td>
你说的是这种东东吗?
</td></tr></table><DIV id=divshow style="POSITION: absolute">
    <A href="http://www.csdn.net" target=_blank>
        <IMG border=0 src="http://www.csdn.net/images/csdn_logo.gif">
    </A> 
</DIV></BODY></HTML>

解决方案 »

  1.   

    你希望是将larye根据分辨率的大小进行定位还是根据窗口的大小进行定位
      

  2.   

    是根据每个页面右下角的,超级链接的(一个图标的)位置,也就是根据窗口的大小,定位!
    我现在已经基本实现!可是有个问题,就是当我选择“本页”功能的时候,总会有一段空白。是由于此时我将layer层属性定为“invisible”的原因,可是我怎么消除这段空白?代码如下:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <script language="javascript" > 
    function note_score(){notelayer.style.visibility="visible";
    notelayer.style.display = "block";
    document.all.notelayer.style.pixelTop=110;
    document.all.notelayer.style.pixelLeft=220;
    var topval=document.all.nextpage.style.top
    topval=topval+10
    document.all.notelayer.style.top=topvalvar leftval=document.all.nextpage.style.left
    leftval=leftval+250
    document.all.notelayer.style.left=leftval}
    function notelay_dis(t) {
    t.style.filter="blendTrans(Duration=1)";
    t.filters.blendTrans.Apply();
    t.style.visibility="hidden";
    t.filters.blendTrans.Play();
    }
    </script> <title>New Page 1</title>
    </head><body>
    adslfjas dl;fkjadlsk fjadlsf dfa     
    asdf adsfa sdfads     
    asdfadsf adsfadsf     
    dfad fadsf adsadf     
         
    <DIV align=left id=notelayer  style="BACKGROUND: #99CCFF; BORDER-BOTTOM: white 3px outset; BORDER-LEFT: white 3px outset; BORDER-RIGHT: white 3px outset; BORDER-TOP: white 3px outset; DISPLAY: none; HEIGHT: 100px; LEFT: 117px; POSITION: relative; top:100px; WIDTH: 350px">      
      <P style="BACKGROUND: #0000e3; COLOR: white; FONT-SIZE: 20px">提示信息         
    </P>        
      <hr color=white size=1 width=330>        
      <FORM action="" method="" name=lookfind ><A style="FONT-SIZE: 21px">        
    <CENTER>        
        </CENTER>        
        </A><A style="FONT-SIZE: 18px">        
        <CENTER>        
          <hr color=white size=1 width=330> </a>        
                 
           <a href="#" onClick=javascript:notelay_dis(notelayer)>本页</a>        
            <a href="www.csdn.net" onClick=javascript:notelay_dis(notelayer)>这里     
          <p>         
     </CENTER>         
         </A>          
      </FORM>         
    </DIV>          
            
    <form name="sub_forms">         
      <div align="right"  id=nextpage >          
       <a href="52.html"><img src="../images/last.gif" width="40" height="40" border="0"></a>          
      <a onClick=javascript:note_score()><img src="../images/next.gif" width="40" height="40" border="0"></a>          
      </div>         
    </form>        
    </body>      
    </html>      
      

  3.   

    http://www.wankedata.com.cn/htm/px.htm这里有一个程序代码很少的。看一下就ok了