爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
页面内部的导航窗口
页面内部的导航窗口
日期:2014-05-18 浏览次数:20207 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <script> var dragapproved=false var minrestore=0 var initialwidth,initialheight var ie5=document.all&&document.getElementById var ns6=document.getElementById&&!document.all function drag_drop(e){ if (ie5&&dragapproved&&event.button==1){ document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx document.getElementById("dwindow").style.top=tempy+event.clientY-offsety } else if (ns6&&dragapproved){ document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx document.getElementById("dwindow").style.top=tempy+e.clientY-offsety } } function initializedrag(e){ offsetx=ie5? event.clientX : e.clientX offsety=ie5? event.clientY : e.clientY if (ie5) document.getElementById("saver").style.display='' tempx=parseInt(document.getElementById("dwindow").style.left) tempy=parseInt(document.getElementById("dwindow").style.top) dragapproved=true document.onmousemove=drag_drop } function loadwindow(url,width,height){ if (!ie5&&!ns6) window.open(url,"","width=width,height=height,scrollbars=1") else{ document.getElementById("dwindow").style.display='' document.getElementById("dwindow").style.width=initialwidth=width document.getElementById("dwindow").style.height=initialheight=height document.getElementById("dwindow").style.left=30 document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30 : document.body.scrollTop*1+30 document.getElementById("cframe").src=url } } function maximize(){ if (minrestore==0){ minrestore=1 //maximize window document.getElementById("maxname").setAttribute("src","http://img.aiyiweb.com/icon_indextool.gif") document.getElementById("dwindow").style.width=ns6? window.innerWidth-20 : document.body.clientWidth document.getElementById("dwindow").style.height=ns6? window.innerHeight-20 : document.body.clientHeight } else{ minrestore=0 //restore window document.getElementById("maxname").setAttribute("src","http://img.aiyiweb.com/icon_indextool.gif") document.getElementById("dwindow").style.width=initialwidth document.getElementById("dwindow").style.height=initialheight } document.getElementById("dwindow").style.left=ns6? window.pageXOffset : document.body.scrollLeft document.getElementById("dwindow").style.top=ns6? window.pageYOffset : document.body.scrollTop } function closeit(){ document.getElementById("dwindow").style.display="none" } if (ie5||ns6) document.onmouseup=new Function("dragapproved=false;document.onmousemove=null;document.getElementById('saver').style.display='none'") </script> <div id="dwindow" style="position:absolute;background-color:navy;cursor:hand;left:0;top:0;display:none" onMousedown="initializedrag(event)" onSelectStart="return false"> <div align="right"><img src="max.gif" id="maxname" onClick="maximize()" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/><img src="close.gif" onClick="closeit()" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/></div> <iframe id="cframe" src="" width=100% height=100%></iframe> <div id="saver" style="width:100%;height:100%;position:absolute;left:0;top:0;display:none"></div> </div> <script> //Use below code to load DHTML Window as page loads if (ns6) window.onload=new Function('loadwindow("http://www.k688.com",600,400)') else loadwindow("http://www.k688.com",600,400) </script> <a href="javascript:loadwindow('http://www.cctv.com',600,400)">中央电视台</a> <a href="javascript:loadwindow('http://www.163.com',600,400)">网易</a> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
上一篇:狡猾的按钮特效
下一篇:QQ菜单生成器
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
AMD Q1净亏1.46亿美元 转战SOC拥抱ARM求变
腾讯为何在与阿里百度的收购比赛中当看客?
华为变阵:任正非调整三大业务布局
云储存有多远:跨过数据安全问题即可到达
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
支付宝钱包支持医保移动缴费 广州成首个试点
Facebook思科联手推免费WiFi 欲覆盖全美
国美电商开打价钱战 牟贵先言行矛盾受质疑
传运营商高层将变化 专家称需体制革新
推荐阅读
更多>
总部大楼已换微软Logo:回忆诺基亚的兴衰史
阿里国际化再落子:2.49亿美元投资新加坡邮政
HTC与苹果三星距离扩展 C2B形式成新武器
金山毒霸安全中心: XP退役后首个高危漏洞来了
新闻早8点》Facebook失手发布Snapchat类应用
谷歌新技术进入iOS平台:将叫板苹果Siri
唯品会股价飙升 引天猫当当京东进军闪购
苹果6月20日发布iPhone5S 触摸屏概念股生动
同程旅游融资后变土豪 如何烧钱占领市场?
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
传陌陌或12月赴美IPO 估值约30亿美元
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
搜狐与奇虎360或结盟对抗BAT
腾讯微信昨晚再现大规模故障 多地受到影响
喜大普奔:2016年国内乘客有望在飞机上使用手机
赴美开店,阿里11Main准备好了吗?
电信业营改增今起实施 运营商短期利润骤降
美国政府关门可能影响去哪儿等公司IPO
承载京东C2C野心的拍拍网:梦想丰满,现实骨感