爱易网
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特效
js展开层效果
js展开层效果
日期:2014-05-18 浏览次数:20104 次
以下是程序代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta name="keywords" content="站长,网页特效,js特效,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>展开层js代码,zzjs.net收集。</title> <STYLE> body { background-color: #EEEEEE; margin: 0px; text-align: center; } #wrap { width: 736px; background-color: #FFFFFF; overflow: hidden; margin: 12px; padding: 12px; } #topcontainer { height: 80px; width: 732px; background-color: #99FF66; border: 1px solid #79F200; } #bodycontainer { height: 400px; width: 100%; margin-top: 12px; } #bottomcontainer { height: 60px; width: 100%; margin-top: 12px; } #topwrap { width: 100%; } #leftcontainer { background-color: #99FF66; height: 400px; width: 120px; float: left; border: 1px solid #79F200; } input { background-color: #99FF66; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #79F200; border-right-color: #79F200; border-bottom-color: #79F200; border-left-color: #79F200; line-height: 28px; background-position: center; height: 30px; } </STYLE> </head> <body> <a href="<#ZC_BLOG_HOST#>">站长特效网</a>,站长必备的高质量网页特效和广告代码。zzjs.net,站长js特效。<hr> <!--欢迎来到站长特效网,我们网站收集大量高质量js特效,提供许多广告代码下载,网址:www.zzjs.net,zzjs@msn.com,用.net打造靓站--> <div id="wrap"> <div align="left" style="margin-bottom:3px"> <input type="button" id="showtop" onclick="topslider.show();this.style.display='none';document.getElementById('hidetop').style.display='';" value="展开顶部"/> <input type="button" id="hidetop" value="关闭顶部" onclick="topslider.hide();this.style.display='none';document.getElementById('showtop').style.display='';" style="display:none"/> </div> <div id="topwrap"> <div id="topcontainer" style="display:none"></div> </div> <div id="bodycontainer"> <div id="leftcontainer" style="display:none"> </div> <div align="left"> <input type="button" id="showleft" value="展开左侧" onclick="leftslider.show();this.style.display='none';document.getElementById('hideleft').style.display='';"/> <input type="button" id="hideleft" value="关闭左侧" onclick="leftslider.hide();this.style.display='none';document.getElementById('showleft').style.display='';" style="display:none"/> </div> </div> <div id="bottomcontainer"></div> </div> <script language="JavaScript" type="text/javascript"> slider.names = new Array(); function slider() {//欢迎来到站长特效网,我们的网址是www.zzjs.net,很好记,zz站长,js就是js特效,本站收集大量高质量js代码,还有许多广告代码下载。 this.id = slider.names.length; slider.names[this.id] = this; this.target = document.getElementById(arguments[0]); //第一个参数:被操作div的id this.direction = arguments[1];//第二个参数:div弹出的方向 this.height = arguments[2];//第三个参数:div的高度 this.width = arguments[3];//第四个参数:div的宽度 this.step = arguments[4];//第五个参数:希望动作分解为几步完成 this.timer = 10 * arguments[5];//第六个参数:每个动作的间隔时间,10ms为一个单位 this.startopa = arguments[6];//第七个参数:div开始的透明度 this.sparent = this.target.parentNode;//获取操作div的父容器 this.intervalid = null;//循环定时的id this.i = 0;//循环的计数器 this.status = 0;//slider层的状态:0-可以展开;1-不可以展开 this.target.style.display = "none";//先将div隐去 return this; } slider
上一篇:狡猾的按钮特效
下一篇:鼠标经过链接弹出提示层效果
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
评论:马云的成功建立在什么基础上很值得怀疑
中移动落马高管盘点:广东移动成反腐重地
微软谷歌高层访韩面前:忌惮三星的崛起
三星维修新规:Galaxy S4主板进水也收费修
苹果优势逐渐丧失 传即将推出廉价iPhone
互联网金融一周年:余额宝最接地气,比特币最作死
国美苏宁线上首度正面PK 京东列席4月电商战
谷歌欲收买WhatsApp添加砝码 对方否认
App Store严禁推送广告 运用面临大清洗
推荐阅读
更多>
微软不会被颠覆
去看看外面的世界吧!别窝里斗了,中国在线旅游商们
Facebook以“人”为本的名义占领安卓
美国政府关门可能影响去哪儿等公司IPO
新闻早8点》Facebook失手发布Snapchat类应用
迅雷高管解读财报:收购快盘可快速融入小米
郭美美事件推手被抓 “秦火火”拷问网络底线
云储存有多远:跨过数据安全问题即可到达
永不磨灭的九大尖端编程语言
阿里巴巴上市后雅虎将面临更大的业绩压力
欧盟控诉苹果在爱尔兰非法进行税收交易
摩托罗拉移动裁员关闭德州Moto X手机工厂
中国移动承诺再降4G资费 网络漫游至50个国家
P2P平台科迅网疑“跑路” 涉及金额超2700万
原万网CTO周雷加盟亿玛 出任CTO一职
阿朗力避步北电后尘 急切停止自我革新
史玉柱谈创业:5大建议 失败的教训最真实
运营商补贴减少 国内通信业拐点逼近
只有切到刚需痛点,漫画APP才能走下去
清点:罗永浩推锤子ROM 小米打法遭模拟