51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

jQuery 右下角滑动弹出可关闭重现层完整代码

效果图:

完整代码如下:
<!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><link rel="dns-prefetch" href="//www.jiangweishan.com"><link rel="dns-prefetch" href="//www.jiangweishan.comsearch.php"><link rel="dns-prefetch" href="//shang.qq.com"><link rel="dns-prefetch" href="//files.jb51.net"><link rel="dns-prefetch" href="//www.w3.org"><link rel="dns-prefetch" href="//ajax.googleapis.com"><link rel="dns-prefetch" href="//www.jb51.net"><link rel="dns-prefetch" href="//www.mockplus.cn"><link rel="dns-prefetch" href="//www.aliyun.com"><link rel="dns-prefetch" href="//pagead2.googlesyndication.com"><link rel="dns-prefetch" href="//weibo.com"><link rel="dns-prefetch" href="//beian.miit.gov.cn"><link rel="dns-prefetch" href="//hm.baidu.com"><link rel="dns-prefetch" href="//www.zblogcn.com"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><title>jquery右下角滑动弹出可关闭重现层 博客园 计划 教程</title><meta name="keywords" content="www.jb51.net"><style type="text/css"> *{ margin:0px; padding:0px;} #jihuaslide{ width:300px; height:200px; border:1px solid #000; position:fixed; bottom:2px; right:2px; display:none; background-color:White;} #jihuaslide a{ position:absolute; top:8px; right:8px; font-size:12px; text-decoration:none; color:Blue;} #jihuaslide h2{ font-size:24px; text-align:center;font-family:"微软雅黑";} #reshow{position:fixed;right:2px;bottom:2px;font-size:12px; display:none;background-color:White; cursor:pointer;border:1px solid #000;} </style></head><body><div style="background-color:Green; width:100%;height:150px;">脚本之家</div><div style="background-color:Red; width:100%;height:150px;">欢迎</div><div style="background-color:Yellow; width:100%;height:150px;">hi</div><div style="background-color:Silver; width:100%;height:150px;">计划</div><div style="background-color:Aqua; width:100%;height:150px;">博客园</div><div style="background-color:Fuchsia; width:100%;height:150px;">jihua</div><div style="background-color:Green; width:100%;height:150px;">jb51.net</div><div style="background-color:Blue; width:100%;height:150px;">cnblogs</div><div style="background-color:Olive; width:100%;height:150px;">欢迎光临</div><div style="background-color:Green; width:100%;height:150px;">A</div><div style="background-color:Purple; width:100%;height:150px;">baidu.com</div><div style="background-color:Green; width:100%;height:150px;">B</div><div style="background-color:Lime; width:100%;height:150px;">hello</div><div style="background-color:Orange; width:100%;height:150px;">Jihua</div><div id="reshow">你快回来</div><div id="jihuaslide"><a href="javaScript:void(0)" id="close">关闭</a><span style=" line-height:50px;">右下角滑动弹出可重现层www.jb51.net</span><h2>脚本之家 jquery教程</h2></div><script type="text/javascript"> function Jihua_Cnblogs_Com() { $("#jihuaslide").slideDown("slow"); $("#reshow").hide(); } $(document).ready(function () { setTimeout(function () { Jihua_Cnblogs_Com(); }, 1000) $("#close").click(function () { $("#jihuaslide").slideUp("slow"); $("#reshow").show(); }) $("#reshow").mouseover(function () { Jihua_Cnblogs_Com(); //www.jb51.net }) }) </script></body></html>
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]


赞(0)
未经允许不得转载:工具盒子 » jQuery 右下角滑动弹出可关闭重现层完整代码