一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

javascript 慢慢变大的窗口 效果代码

时间:2010-07-14 编辑:简简单单 来源:一聚教程网

  <script language="网页特效">
  <!--
  var windows
  var windows
  var numx=5
  function openwindow(thelocation){
  temploc=thelocation
  if
  (!(window.resizeto&&document.all)&&!(window.resizeto&&document.getelementbyid))
  {
    window.open(thelocation)
    return
  }

  windowsize=window.open("","","scrollbars")
  windowsize.moveto(0,0)
  windowsize.resizeto(100,100)
  tenumxt()
  }
  function tenumxt(){
  if (windowsheight>=screen.availheight-3)
    numx=0
  windowsize.resizeby(5,numx)
  windowsheight+=5
  windowswidth+=5
  if (windowswidth>=screen.width-5)
  {
    windowsize.location=temploc
    windows
    windows
    numx=5
    return
  }
  settimeout("tenumxt()",50)
  }
  //-->
  </script>
  <p><a href="javascript:openwindow(http://www.111com.net)">进入</a>

热门栏目