网页特效
建站首页
|
广告代码
|
源码下载
|
站长工具
|
字体下载
|
网页模板
|
收藏本站
|
设为首页
网站首页
菜单导航
日期时间
背景图像
图层样式
鼠标键盘
页面窗口
色彩表格
链接文字
表单按钮
计数转换
游戏娱乐
综合实例
特效
热门搜索:
特效代码
js脚本
导航菜单
热点推荐:
英文字体
人民币汇率
dw插件
站长常用软件
alexa排名查询
您的位置:
网页特效
->
菜单导航
-> 隐藏在左侧的jquery弹性弹出菜单
隐藏在左侧的jquery弹性弹出菜单
作者:admin 发布时间:2010-11-16 21:30:27 发布人: admin
<!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=gbk"/> <title>隐藏在左侧的jquery弹性弹出菜单丨网页特效</title> <script type="text/javascript" src="http://web.archive.org/web/20150329084114js_/http://myjs.jz123.cn/js/jquery1.3.2.js"></script> <script language="javascript"> $(function(){ $("#clickopen").click(function(){ var offset=$("#clickopen").offset().top; $("#page").css("top",offset+"px"); $("#clickopen").hide(); $("#page").animate({ width: "400px", height: "400px", left: ($("body").width()/2-200)+"px", top: (offset-100)+"px", opacity: 'toggle' }, 300 ); return false; }) $("#closepage").click(function(){ var offset=$("#page").offset().top; $("#page").animate({ width: "0px", height: "0px", left: "0px", top: (offset+100)+"px", opacity: 'toggle' }, 300 ); $("#clickopen").show(); return false; }) }) </script> <style> body{text-align:center;font-size:12px;color:#333;font-family:"宋体";background:#fff;margin:0 auto;padding:0;} body > div{text-align:center;margin-right:auto;margin-left:auto;} div,form,ul,ol,li,span,p,dt,dd,dl{border:0;margin:0;padding:0;} img,a img{border:0;margin:0;padding:0;} h1,h2,h3,h4,h5,h6{font-size:12px;font-weight:400;margin:0;padding:0;} ul,ol,li{list-style:none;} td{word-break:break-all;} a{color:#003cc8;text-decoration:none;} a:hover{text-decoration:underline;color:blue;} .f_tahoma{font-family:Tahoma;} em,i{font-style:normal;} .ask{overflow:hidden;position:fixed;left:0px;top:200px;z-index:2} .leftButton{background:red;width:20px;height:80px;text-align:center;line-height:20px;display:block;color:#fff; } .content{background:#999;width:800px;height:2000px;margin:0 auto} * html,* html body /* 修正IE6振动bug */{background-image:url(http://web.archive.org/web/20150329084114im_/about:blank);background-attachment:fixed;} .ask{_position:absolute;_bottom:auto;_left:0;_top: expression(documentElement.scrollTop + 200 + "px");} .page{width:0px; position:absolute;height:0px;left:0;top:0px;z-index:1;overflow:hidden;display:none} .page div{border:1px solid #000;overflow:hidden;width:398px} .page h1{height:40px;text-align:center;font-size:20px;color:#fff;background:red;line-height:40px} .page h1 a{float:right;color:#000;margin-top:-15px} .page p{padding:10px;line-height:22px;font-size:14px;text-align:left;background:#fff;height:400px;width:378px} </style> </head> <body> <div class="ask"> <a class="leftButton" href="#" id="clickopen">点击弹出</a> </div> <div class="content"><p align="center">本特效由 <a href="http://web.archive.org/web/20150329084114/http://myjs.jz123.cn/" target="_blank">网页特效</a>丨 收集于互联网,只为兴趣与学习交流,不作商业用途。<br><br>如果不显示效果,菜单弹不出来请刷新一下页面,谢谢</p> </div> <div class="page" id="page"> <div> <h1><a href="#" id="closepage">×</a>欢迎光临 http://myjs.jz123.cn</h1> <p align="center">本特效由 <a href="http://web.archive.org/web/20150329084114/http://myjs.jz123.cn/" target="_blank">网页特效</a>丨myjs.jz12.cn 收集于互联网,只为兴趣与学习交流,不作商业用途。</p> </div> </div> </body> </html>
隐藏在左侧的jquery弹性弹出菜单
将本文收藏到QQ书签与更多好友分享
上一篇:文章:
js容错脚本代码
下一篇:文章:
CSS+Js选项卡菜单,自适应宽度
本类浏览排行 »
CSS+Js选项卡菜单,自适应宽度
隐藏在左侧的jquery弹性弹出菜单
js容错脚本代码
退出弹窗代码
实用的间断和不间断文本滚动效
漂亮的404错误页面
鼠标悬停改变背景色
CSS个性尖角布局
本站推荐文章 »
漂亮的404错误页面
比较实用的二级下拉导航菜单
点击图片直接把图片地址复制到粘贴板
一款常用的漂亮的JS图片滑动切换效果
兼容ie6、ie7、ff、opera、safari的水平垂..
一款设计精美的CSS滑动门菜单
一款简洁漂亮的CSS滑动门特效
结构和表现分离的Tab选项卡特效