爱易网
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 浏览次数:20197 次
以下是程序代码
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="keywords" content="站长,网页特效,js特效,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>字幕可随意控制,sky整理收集,站长特效欢迎您。</title> </head> <body onload=init()> <SCRIPT language=JavaScript> function DynLayer(id,nestref,frame) { if (!is.ns5 && !DynLayer.set && !frame) DynLayerInit() this.frame = frame || self if (is.ns) { if (is.ns4) { if (!frame) { if (!nestref) var nestref = DynLayer.nestRefArray[id] if (!DynLayerTest(id,nestref)) return this.css = (nestref)? eval("document."+nestref+".document."+id) : document.layers[id] } else this.css = (nestref)? eval("frame.document."+nestref+".document."+id) : frame.document.layers[id] this.elm = this.event = this.css this.doc = this.css.document } else if (is.ns5) { this.elm = document.getElementById(id) this.css = this.elm.style this.doc = document } this.x = this.css.left this.y = this.css.top this.w = this.css.clip.width this.h = this.css.clip.height } else if (is.ie) { this.elm = this.event = this.frame.document.all[id] this.css = this.frame.document.all[id].style this.doc = document this.x = this.elm.offsetLeft this.y = this.elm.offsetTop this.w = (is.ie4)? this.css.pixelWidth : this.elm.offsetWidth this.h = (is.ie4)? this.css.pixelHeight : this.elm.offsetHeight } this.id = id this.nestref = nestref this.obj = id + "DynLayer" eval(this.obj + "=this") } function DynLayerMoveTo(x,y) { if (x!=null) { this.x = x if (is.ns) this.css.left = this.x else this.css.pixelLeft = this.x } if (y!=null) { this.y = y if (is.ns) this.css.top = this.y else this.css.pixelTop = this.y } } function DynLayerMoveBy(x,y) { this.moveTo(this.x+x,this.y+y) } function DynLayerShow() { this.css.visibility = (is.ns4)? "show" : "visible" } function DynLayerHide() { this.css.visibility = (is.ns4)? "hide" : "hidden" } DynLayer.prototype.moveTo = DynLayerMoveTo DynLayer.prototype.moveBy = DynLayerMoveBy DynLayer.prototype.show = DynLayerShow DynLayer.prototype.hide = DynLayerHide DynLayerTest = new Function('return true') // DynLayerInit Function function DynLayerInit(nestref) { if (!DynLayer.set) DynLayer.set = true if (is.ns) { if (nestref) ref = eval('document.'+nestref+'.document') else {nestref = ''; ref = document;} for (var i=0; i<ref.layers.length; i++) { var divname = ref.layers[i].name DynLayer.nestRefArray[divname] = nestref var index = divname.indexOf("Div") if (index > 0) { eval(divname.substr(0,index)+' = new DynLayer("'+divname+'","'+nestref+'")') } if (ref.layers[i].document.layers.length > 0) { DynLayer.refArray[DynLayer.refArray.length] = (nestref=='')? ref.layers[i].name : nestref+'.document.'+ref.layers[i].name } } if (DynLayer.refArray.i < DynLayer.refArray.length) { DynLayerInit(DynLayer.refArray[DynLayer.refArray.i++]) } } else if (is.ie) { for (var i=0; i<document.all.tags("DIV").length; i++) { var divname = document.all.tags("DIV")[i].id var index = divname.indexOf("Div") if (index > 0) { eval(divname.substr(0,index)+' = new DynLayer("'+divname+'")') } } } return true } DynLayer.nestRefArray = new Array() DynLayer.refArray = new Array() DynLayer.refArray.i = 0 DynLayer.set = false // Slide Methods function DynLayerSlideTo(endx,endy,inc,speed,fn) { if (endx==null) endx = this.x if (endy==null) endy = this.y var distx = endx-this.x var disty = endy-this.y this.slideStart(endx,endy,distx,disty,inc,speed,fn) } function DynLayerSlideBy(
上一篇:狡猾的按钮特效
下一篇:文本内容随机显示js脚本
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
“扫黄打非”下9158否认遭整顿
同程旅游融资后变土豪 如何烧钱占领市场?
北京电信推“0月租卡”,同网通话免费
支付宝曝平安破绽:转账信息被谷歌抓取
搜房网遭遇做空 利益保送成“猎杀”焦点
欧洲6万人起诉Facebook隐私侵权
微软很“捉急”:补贴Win8 重加末尾按钮
扎克伯格华裔妻子首度亮相电视节目畅谈情史
雷军会做赔钱生意?迅雷跌破发行价 市值仅7亿美元
推荐阅读
更多>
评论:马云的成功建立在什么基础上很值得怀疑
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
京东联席董事长赵国庆上市前夕离职
小微型IDC云化趋势加剧 云计算未来或现终极模式
苹果股价突破100美元大关:投资者看好iPhone 6
微信今天大面积崩溃 腾讯:因光缆施工被挖断
中电信国际漫游费下调85% 世界杯上网28元/天
全球五大电信设备商业绩:华为净利居首
华为变阵:任正非调整三大业务布局
微软为避免代理权争夺 与大股东达成和解协议
苹果MacBook Air劣势渐显 或推新产品改变命运
地图导航骤起杀机 百度高德重新定义商业模式
2019双12阿里云老用户怎么参加拼团活动 老用户拼团方法
一个非脑残米粉的思考:小米“成功之道”如何炼成
用友软件股价逆势下跌 再融资方案现曙光
京东微信入口战略能否助力618大促创流量巅峰
2018双11阿里云老用户怎么参加拼团活动 老用户拼团方法
诺基亚培育低端机市场 迂回战术要挟中华酷联
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
欧盟控诉苹果在爱尔兰非法进行税收交易