jquery右下角自动弹出关闭层

效果体验:http://keleyi.com/keleyi/phtml/jqtexiao/36.htm

右下角弹出层后,会在一定时间后自动隐藏。第一版本:http://www.cnblogs.com/jihua/archive/2012/10/10/youxiajiao.html

html代码:

<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>jquery右下角自动弹出关闭层-柯乐义</title><base target="_blank"/>
    <meta name="keywords" content="keleyi.com" />
    <script type="text/javascript" src="http://keleyi.com/keleyi/pmedia/jquery/jquery-1.11.2.min.js"></script>
    <style type="text/css">
        * {
            margin: 0px;
            padding: 0px;
        }
        a {color:black;
        }
        #keleyislide {
            width: 300px;
            height: 200px;
            border: 1px solid #000;
            position: fixed;
            bottom: 2px;
            right: 2px;
            display: none;
            background-color: White;
            z-index:9999;
        }

            #keleyislide a {
                position: absolute;
                top: 8px;
                right: 8px;
                font-size: 12px;
                text-decoration: none;
                color: Blue;
            }

            #keleyislide 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;">keleyi.com</div>
    <div style="background-color:Red; width:100%;height:150px;">欢迎</div>
    <div style="background-color:Yellow; width:100%;height:150px;"><a href="http://keleyi.com/a/bjae/t5t54xly.htm">原文</a> <a href="http://keleyi.com">首页</a> <a href="http://keleyi.com/keleyi/phtml/">特效库</a>
   <a href="http://hovertree.com">HoverTree</a> 一定时间后弹出层会自动隐藏
    </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;">hovertree.com</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;">randomvisit</div>
    <div style="background-color:Purple; width:100%;height:150px;">jihua.cnblogs.com</div>
    <div style="background-color:Green; width:100%;height:150px;">B</div>
    <div style="background-color:Lime; width:100%;height:150px;">myslider</div>
    <div style="background-color:Orange; width:100%;height:150px;">Jihua</div>
    <div id="reshow">你快回来</div>
    <div id="keleyislide">
        <a href="javaScript:void(0)" id="close" target="_self">关闭</a>
        <span style=" line-height:50px;">右下角滑动弹出可重现层<br />keleyi.com</span>
        <h2>柯乐义 教程</h2>
    </div>
    <script type="text/javascript">
        function Jihua_Cnblogs_Com() { $("#kel"+"eyislide").slideDown("slow"); $("#reshow").hide(); }
        function KeleyiAutoHide() { $("#ke"+"leyislide").slideUp("slow"); $("#reshow").show(); }
        $(document).ready(function () {
            setTimeout(function () {
                Jihua_Cnblogs_Com();
            }, 1000)
            setTimeout(function () { KeleyiAutoHide(); },9000)
            $("#close").click(function () {
                KeleyiAutoHide();
            })
            $("#reshow").mouseover(function () {
                Jihua_Cnblogs_Com(); //keleyi.com
             })
        })
    </script>
</body>
</html>

前端资源:http://www.cnblogs.com/jihua/p/webfront.html

时间: 2024-07-29 03:09:42

jquery右下角自动弹出关闭层的相关文章

jquery layer插件弹出弹层 结构紧凑,功能强大

/* 去官方网站下载最新的js http://sentsin.com/jquery/layer/ ①引用jquery ②引用layer.min.js */ 事件触发炸弹层可以自由绑定,例如: $('#id').on('click', function(){ layer.msg('test'); }); 以下主要贴出上述样例的调用代码: [信息框]: layer.alert('白菜级别前端攻城师贤心', 8); //风格一 layer.msg('前端攻城师贤心'); //风格二 //当然,远远不止

jQuery点击弹出层,弹出模态框,点击模态框消失

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 <!DOCTYPE html>

jQuery 插件开发——PopupLayer(弹出层)

导读:上次写了一篇关于GridView的插件开发方法,上几天由于工作需要,花了一天左右的事件封装了popupLayer(弹出层)插件.今天有时间就记录一下自己的开发思想与大家分享下,同时也算是对这段时间的工作概要吧. 就我在开发过程中的理解和开发的经验,一般常用的弹出层有三类(其实还有一类就是弹出可以输入内容的,但是这种可以被替代,所以就特别拿出来写了):Confirm.Alert.LoadContent(url).其中Alert又可以分成五种(当然也可以是四种),分别是: "error&quo

自定义jQuery浮动弹出框插件

自定义浮动弹出框使用说明 1. jquery.alert.js源代码如下: (function($){ var defaults = { width : 350, //浮动弹出框宽度 height : 200, //浮动弹出框高度 minWidth : 350, //浮动弹出框最小宽度 minHeight : 200, //浮动弹出框最小高度 fontFamily : "微软雅黑",//浮动弹出框内文字字体 fontSize : "12px",//浮动弹出框内文字大

JQuery弹出层,点击按钮后弹出遮罩层,有关闭按钮

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>jQuery弹出层效果</title> <meta content="网页特效,特效代码,jQuery,css特效,Js代码,广告幻灯,图片切换" name="keywords" /> <meta content="

android 软键盘自动弹出和关闭

 一.布局中软键盘自动弹出 bargain_dialog_offer_edit.requestFocus(); bargain_dialog_offer_edit.setFocusable(true); InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInputFromInputMethod(bargain_dialo

关闭Eclipse中自动弹出console的功能

当我们使用Eclipse编写代码的时候,一般都会使界面最大化,如果这时tomcat服务器处在运行的状态,那么当后台有打印内容,比如日志输出,代码程序报错输出时,console就会自动弹出,很不方便. 关闭console自动弹出步骤: Windows-->>Preferences-->>Run/Debug-->>Console,取消勾选 Show when program writes to standard out和Show when program writes to

iMAC——关闭自动弹出手机照片

有时当自己的iPhone手机插入一台iMAC电脑时,会自动弹出自己iPhone手机的照片. 这相当影响人的隐私等等,所以顺便将方法(参考网络的)小记一篇博客. 一.OS X 10.10以上用户解决办法: 因为OS X 10.10系统以后iPhoto程序由“照片”程序取代,要阻止“照片”自动弹出,非常简单,在弹出的窗口左上角就有“为此设备打开‘照片'”,取消前面的勾选项即可解决. 二.OS X 10.10以下用户解决办法: 1.如果自动弹出的程序为iphoto软件,设置稍微复杂几步,首先进入Lau

div今天之内不再自动弹出(cookie)

利用cookie,让div今天之内不再自动弹出(类似关闭广告功能),适用于首页加载弹框提示. 代码如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">