加入收藏 | 设为首页 | 会员中心 | 我要投稿 核心网 (https://www.hxwgxz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 创业 > 正文

javascript 打开网页,窗口慢慢变大效果

发布时间:2018-09-02 18:10:27 所属栏目:创业 来源:站长网
导读:javascript 打开网页,窗口慢慢变大效果 script language=javascript var windowsheight=100 var windowswidth=100 var numx=5 function openwindow(thelocation){ temploc=thelocation if (!(window.resizetodocument.all)!(window.resizetodocument.getel

javascript 打开网页,窗口慢慢变大效果

<script language="javascript">

  var windowsheight=100
  var windowswidth=100
  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
    windowsheight=100
    windowswidth=100
    numx=5
    return
  }
  settimeout("tenumxt()",50)
  }
  </script>
  <p><a href="javascript:openwindow(http://www.veryhuo.com)">进入</a>

(编辑:核心网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读