<script language="javascript">
         function relocate(){
            var mydiv = document.getElementById("img1");
   var right=Math.abs(document.body.clientWidth + document.body.scrollLeft - 240);
            var height = Math.abs(document.body.clientHeight + document.body.scrollTop - 110);
            window.status = document.body.clientHeight + " " + document.body.scrollTop;
  
            mydiv.style.top = height;
   mydiv.style.left=right;
         }
      </script>

 <script language="javascript">       window.onscroll = relocate;       window.onresize = relocate;    </script>    <div id=img1 style="Z-INDEX:100; LEFT:2px; WIDTH:59px; POSITION:absolute; TOP:43px; HEIGHT:61px; visibility: visible;">   <div id="kai"><a href="javascript:close();"><font color="red">×关 闭</font></a></div>  <a href="" target="_blank"><img src="../site4/bsfw01.gif" width="230" height="80" id="tu1" alt="" /></a>

</div>

<script language="javascript">

 relocate();

  </script>

posted on 2012-11-07 16:42  sdp*_*  阅读(200)  评论(0编辑  收藏  举报