教程集 www.jiaochengji.com
教程集 >  jQuery  >  jquery 教程  >  正文 jquery 定时滑出可最小化的底部提示层的实现代码

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

发布时间:2015-11-22   编辑:jiaochengji.com
分享一例jquery代码,实现可以定时滑出可最小化的底部提示层的效果,感兴趣的朋友不妨参考下,希望对大家有所帮助。

本节内容:
jquery 定时滑出可最小化的底部提示层

实现效果:
当打开页面或者刷新页面后等待两秒钟,会在底部滑出可最小化的提示层。滑出层半透明,可关闭再现。

此jquery效果的应用范围很广,比如弹出广告、弹出注册层、弹出最新消息等,实现的jquery代码比较简单。
等待时间为2000毫秒,即2秒,可以进行修改。

1,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="http://jbxue.com/jbxue/phtml/jqtexiao/index/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://jbxue.com/jbxue/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="http://jbxue.com" target="_blank" style="color:#000">脚本学堂</a>网站出品(<a href="http://jbxue.com" style="color:#000" target="_blank">http://jbxue.com</a>)<br />
<br />
</span>

2,当打开页面或者刷新页面后等待两秒钟,会在底部滑出可最小化的提示层。
 

复制代码 代码示例:

</div>
<div style="background-color:Red; width:100%;height:150px;">欢迎。<a href="http://jbxue.com/a/bjac/fbfoqqbp.htm">原文</a></div>
<div style="height:830px;"></div>
<div style="background-color:Fuchsia; width:100%;height:150px;">jbxue</div>
<div style="height:500px;"></div>

<div class="bottom_box-jbxue-com">
<div class="bottom">
<p>感谢您访问脚本学堂网站!<a href="http://jbxue.com" target="_blank">http://jbxue.com</a>,<br/>专门分享实用、常用的技术文章代码资源的网站</p>
<div class="ask"><a href="http://jbxue.com/">首页</a>
<a href="http://jbxue.com/ablut/">关于</a>
<a href="http://jbxue.com/a/bjac/kjsrt3b0.htm">jQuery AJAX</a>
<a href="http://jbxue.com/a/bjac/182di68b.htm">导航样式</a>
<a href="http://jbxue.com/a/bjac/mt97p5y9.htm">侧边导航</a>
<a href="http://jbxue.com/dev/3068696139522ae4.htm">树形菜单</a>
<a href="http://jbxue.com/game/1/">捕鱼</a>
<a href="http://jbxue.com/game/3/">打地鼠</a>
<a href="http://jbxue.com/game/4/">美女拼图</a>
<a href="http://jbxue.com/jbxue/phtml/silverlight/">猜数字</a>
</div>
</div>
<div class="close"></div>
</div>
<img class="mini" src="http://jbxue.com/jbxue/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定时滑出可最小化的底部提示层特效代码
jquery 定时滑出可最小化的底部提示层的实现代码
40个有创意的jQuery图片、内容滑动及弹出插件收藏集之一
40个有创意的jQuery图片和内容滑动及弹出插件收藏集之三
jQuery 打造动态下滑菜单实现说明
JQUERY实现左侧TIPS滑进滑出效果示例
网页中返回顶部代码(多种方法)另附注释说明
通过JQuery实现win8一样酷炫的动态磁贴效果(示例代码)
基于jquery的跟随屏幕滚动代码
Html5之title吸顶功能

[关闭]
~ ~