爱易网
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 浏览次数:20591 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>爱易网网页特效演示,进入网页菜单逐渐放大弹出</title> </head> <body background="../images/bg.gif" onload="dynAnimation()" language="Javascript1.2"> <SCRIPT language=JavaScript FPTYPE="dynamicanimation"> <!-- dynamicanimAttr = "dynamicanimation" animateElements = new Array() currentElement = 0 speed = 0 stepsZoom = 8 stepsWord = 8 stepsFly = 12 stepsSpiral = 16 steps = stepsZoom step = 0 outString = "" function dynAnimation() { var ms = navigator.appVersion.indexOf("MSIE") ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4) if(!ie4) { if((navigator.appName == "Netscape") && (parseInt(navigator.appVersion.substring(0, 1)) >= 4)) { for (index=document.layers.length-1; index >= 0; index--) { layer=document.layers[index] if (layer.left==10000) layer.left=0 } } return } for (index=document.all.length-1; index >= document.body.sourceIndex; index--) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if(null != animation) { if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord") { ih = el.innerHTML outString = "" i1 = 0 iend = ih.length while(true) { i2 = startWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, false, "") if(i2 == iend) break i1 = i2 i2 = endWord(ih, i1) if(i2 == -1) i2 = iend outWord(ih, i1, i2, true, animation) if(i2 == iend) break i1 = i2 } document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } if(animation == "zoomIn" || animation == "zoomOut") { ih = el.innerHTML outString = "<SPAN " + dynamicanimAttr + "=\"" + animation + "\" style=\"position: relative; left: 10000;\">" outString += ih outString += "</SPAN>" document.all[index].innerHTML = outString document.all[index].style.posLeft = 0 document.all[index].setAttribute(dynamicanimAttr, null) } } } i = 0 for (index=document.body.sourceIndex; index < document.all.length; index++) { el = document.all[index] animation = el.getAttribute(dynamicanimAttr, false) if (null != animation) { if(animation == "flyLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = 0 } else if(animation == "flyRight") { el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth el.style.posTop = 0 } else if(animation == "flyTop" || animation == "dropWord") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight } else if(animation == "flyBottom") { el.style.posLeft = 0 el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight } else if(animation == "flyTopLeft") { el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
上一篇:狡猾的按钮特效
下一篇:滚动链接导航
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
新一代iPhone11月底国内上市 支持TD制式
中国手游总裁及8名高管集体下岗,被指涉不当交易
逆转猜想:如果阿里成为雅虎大股东会怎样?
FB上广告费用昂贵而且效果不及Twitter
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
亚马逊第三方平台真的卖盗版书?
传360周鸿祎曾试图阻止百度收购91无线
马斯克的特斯拉能否保持好势头
微软的云服务显示出他们将自我进化
推荐阅读
更多>
微软为避免代理权争夺 与大股东达成和解协议
三大运营商获通知大减营销费 传3年减400多亿
称产品遭诋毁 奇虎再诉百度
小微型IDC云化趋势加剧 云计算未来或现终极模式
中移动财报外的"五座大山":运营商沦为走秀陪衬
微软不会被颠覆
OPPO Find7体验测 Find7综测
谷歌欲收买WhatsApp添加砝码 对方否认
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
一大波智能路由器正在袭来:小米、360、极路由大PK
京东联席董事长赵国庆上市前夕离职
只有切到刚需痛点,漫画APP才能走下去
开个房刷个卡全世界都知道个人隐私成公开秘密
中兴引进黑莓三个核心团队
三星手机在国内陷入困境:华为中兴小米紧追
北京今日实现用支付宝钱包为公交卡充值
第二梯队也PK:当1号店“遇上”京东手机节
八位知名设计师评iOS7:新鲜但复杂
继续涨:微博IPO第二交易日 收盘大涨11.71%
苹果收购Beats交易或将延期尚需解决5大问题