jquery定时滑出可最小化的底部提示层特效代码

 更新时间:2013年10月02日 15:40:23   作者:  
当打开页面或者刷新页面后等待两秒钟,会在底部滑出可最小化的提示层。滑出层半透明,可关闭再现。应用范围很广,比如弹出广告、弹出注册层、弹出最新消息等,实现的jquery代码比较简单

html源代码:

复制代码 代码如下:

<!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定时滑出可最小化的底部提示层</title><base target="_blank" />
<link href="https://www.jb51.net/phtml/jqtexiao/index/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="https://www.jb51.net/pmedia/jquery/jquery-1.10.2.min.js"></script>
</head>

<body>
<div style="width:800px;margin:0px auto">
<span style="font-size:18px; font-weight:bold; text-align:center; line-height:25px; color:#000; width:100%">jquery定时底部滑出可最小化的提示层特效<br />
<a href="https://www.jb51.net" target="_blank" style="color:#000">脚本之家</a>(<a href="https://www.jb51.net" style="color:#000" target="_blank">https://www.jb51.net</a>)<br />
<br />
</span>

当打开页面或者刷新页面后等待两秒钟,会在底部滑出可最小化的提示层。
</div>
<div style="background-color:Red; width:100%;height:150px;">欢迎。</div>
<div style="height:830px;"></div>
<div style="background-color:Fuchsia; width:100%;height:150px;">jb51</div>
<div style="height:500px;"></div>

<div class="bottom_box-keleyi-com">
<div class="bottom">
<p>感谢您访问脚本之家网站!<a href="https://www.jb51.net" target="_blank">https://www.jb51.net</a>,<br/>专门分享实用、常用的技术文章代码资源的网站</p>
<div class="ask"><a href="https://www.jb51.net/">首页</a>
<a href="https://www.jb51.net/ablut/">关于</a>
<a href="https://www.jb51.net/a/bjac/kjsrt3b0.htm">jQuery AJAX</a>
<a href="https://www.jb51.net/a/bjac/182di68b.htm">导航样式</a>
<a href="https://www.jb51.net/a/bjac/mt97p5y9.htm">侧边导航</a>
<a href="https://www.jb51.net/dev/3068696139522ae4.htm">树形菜单</a>
<a href="https://www.jb51.net/game/1/">捕鱼</a>
<a href="https://www.jb51.net/game/3/">打地鼠</a>
<a href="https://www.jb51.net/game/4/">美女拼图</a>
<a href="https://www.jb51.net/phtml/silverlight/">猜数字</a>
</div>
</div>
<div class="close"></div>
</div>
<img class="mini" src="https://www.jb51.net/phtml/jqtexiao/index/mini.png" width="65" height="37" alt="打开" />
<script type="text/javascript">
$(function(){
setTimeout(function(){
$(".bottom_box-k"+"eleyi-com").slideDown("slow");
},2000);

$(".close").click(function(){
$(".bottom_box-ke"+"leyi-com").hide();   
$(".mini").show(200);   
})
$(".mini").click(function(){
$(this).hide();   
$(".bottom_box-kele"+"yi-com").show();   
})
});
</script>
</body>
</html>

相关文章

  • jQuery中hover与mouseover和mouseout的区别分析

    jQuery中hover与mouseover和mouseout的区别分析

    这篇文章主要介绍了jQuery中hover与mouseover和mouseout的区别,结合实例分析了jQuery中hover与mouseover和mouseout的区别与使用技巧,需要的朋友可以参考下
    2015-12-12
  • jQuery html() in Firefox (uses .innerHTML) ignores DOM changes

    jQuery html() in Firefox (uses .innerHTML) ignores DOM chang

    Firefox doesn't update the value attribute of a DOM object based on user input, just its valueproperty - pretty quick work around exists.
    2010-03-03
  • jQuery实现高亮显示的方法

    jQuery实现高亮显示的方法

    这篇文章主要介绍了jQuery实现高亮显示的方法,涉及jQuery样式控制的addClass与removeClass方法使用技巧,需要的朋友可以参考下
    2015-03-03
  • jQuery实现鼠标经过时出现隐藏层文字链接的方法

    jQuery实现鼠标经过时出现隐藏层文字链接的方法

    这篇文章主要介绍了jQuery实现鼠标经过时出现隐藏层文字链接的方法,涉及jQuery鼠标hover事件的响应及页面元素的动态处理技巧,具有一定参考借鉴价值,需要的朋友可以参考下
    2015-10-10
  • jquery 将disabled的元素置为enabled的三种方法

    jquery 将disabled的元素置为enabled的三种方法

    在jquery中可以通过jqueryObj.attr("disabled","disabled")将页面中某个元素置为不可编辑或触发状态,但是在jquery的API reference中并没说明怎么将页面置为disable的元素重新置为可触发或可编辑的。
    2009-07-07
  • Jquery 获得服务器控件值的方法小结

    Jquery 获得服务器控件值的方法小结

    由于ASP.NET网页运行后,服务器控件会随机生成客户端id,jquery获取时候不太好操作,google了下,总结有以下3种方法.
    2010-05-05
  • jQuery中append()方法用法实例

    jQuery中append()方法用法实例

    这篇文章主要介绍了jQuery中append()方法用法,实例分析了append()方法的功能、定义及在匹配元素的结尾插入指定内容的使用技巧,需要的朋友可以参考下
    2015-01-01
  • ajax页面无刷新 IE下遭遇Ajax缓存导致数据不更新的问题

    ajax页面无刷新 IE下遭遇Ajax缓存导致数据不更新的问题

    在做ajax页面无刷新添加的时候,IE下遭遇Ajax缓存,因为刚开始并不知道IE有这个坏毛病,折腾好久,终于解决问题,晒出来和大家分享,希望可以帮助你们
    2012-12-12
  • 跟着JQuery API学Jquery 之四 css

    跟着JQuery API学Jquery 之四 css

    在javascript中我们常常要改变dom的css样式 ,同样Jquery也对改变css做了封装不用我们去用 getElementByid().style.……来操作了
    2010-04-04
  • jQuery实现的分页功能示例

    jQuery实现的分页功能示例

    这篇文章主要介绍了jQuery实现的分页功能,结合实例形式较为详细的分析了jQuery实现分页功能的具体步骤及相关操作技巧,包括前台样式、布局及jQuery分页插件的调用方法,需要的朋友可以参考下
    2017-01-01

最新评论