JQUERY打造隐藏在左侧的弹性弹出菜单
来源:互联网 发布:java自动获取当前时间 编辑:程序博客网 时间:2024/05/14 21:34
<!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=utf-8" />
<title>JQUERY打造隐藏在左侧的弹性弹出菜单_网页代码站(www.webdm.cn)</title>
<script type="text/javascript" src="http://www.webdm.cn/themes/script/jquery.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(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"></div>
<div class="page" id="page">
<div>
<h1><a href="#" id="closepage">x</a>欢迎光临 网页代码站</h1>
<p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的网页代码下载网站 - 致力为中国站长提供有质量的网页代码!</p>
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JQUERY打造隐藏在左侧的弹性弹出菜单_网页代码站(www.webdm.cn)</title>
<script type="text/javascript" src="http://www.webdm.cn/themes/script/jquery.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(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"></div>
<div class="page" id="page">
<div>
<h1><a href="#" id="closepage">x</a>欢迎光临 网页代码站</h1>
<p><a href="http://www.webdm.cn">网页代码站</a> - 最专业的网页代码下载网站 - 致力为中国站长提供有质量的网页代码!</p>
</div>
</div>
</body>
</html>
- JQUERY打造隐藏在左侧的弹性弹出菜单
- js点击弹出左侧隐藏菜单
- 点击左侧菜单在右侧弹出相应的内容
- 左侧菜单弹出
- vue 左侧菜单弹出
- 左侧导航菜单 子菜单的显示隐藏效果
- jQuery左侧菜单效果
- JS隐藏显示左侧菜单
- 一段左侧菜单的显示隐藏的代码
- Jquery+CSS打造的泡沫弹出框式的侧边蓝色导航菜单
- jQuery 怎么实现点击页面其他地方隐藏菜单? 做了个按钮点击时弹出菜单,想实现点击其他地方时隐藏弹出的菜单
- iOS 弹性动画之弹出分享菜单的实现
- JQuery 左侧导航菜单demo
- jquery左侧导航网页菜单
- jQuery左侧二级菜单树
- jQuery实现左侧分类菜单
- jQuery实现左侧分类菜单
- jQuery简易左侧固定菜单
- Windows远程访问linux数据库
- Jquery学习笔记——自定义事件
- 无法使用前导 .. 在顶级目录上退出
- 基础不牢地动山摇啊~
- Android中有用的Item选中和按下去的样式
- JQUERY打造隐藏在左侧的弹性弹出菜单
- 工程师必要了解的网站
- 000015.OracleSQL执行计划
- setInterval用法注意
- Android逐条加载ListView,实现动画更新
- delphi读取xml文件
- linux内核GPIO模拟I2C实例
- 复制构造函数(copy constructor)
- MAC上VirtualBox安装的Fedora 15无法启动