返回首页·设为首页·加入收藏·WAP·RSS
资讯业内人物评论
软件WordExcelWPS
安全杀毒入侵政策
硬件CPU内存硬盘
黑客漏洞入侵木马
认证微软思科华为
脚本ASPJSP
网络交换路由
设计PSCorelDraw
编程JavaVCVB
制图AutoCadCAXA
协议TCPIPIPv6

您现在的位置:蛤蟆网>> 脚本>> JavaScript>>正文内容

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

作者:蛤蟆采编组 来源:蛤蟆网 发布时间:2010年07月20日 点击数:
    

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.xker.com)">进入</a>


共1页 您在第1页 首页 上一页 1 下一页 尾页 跳转到页 本页共有1152个字符
上一篇:判断 iframe 是否加载完成的完…下一篇:没有了!
  • 没有任何带图片的信息!
  • 联系我们 | 网站留言 | 友情链接 | 版权声明 | 网站公告 | 快速导航 | 会员登陆
    CopyRight© 2004-2010 www.HaMaIt.cn All Rights Reserved
    Email:WebMaster@HaMaIt.cn QQ:308164407 辽ICP备08101943号