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

本文介绍如何使用jQuery代码在网页打开或刷新后等待两秒后,滑出一个可最小化的底部提示层。该提示层半透明且可关闭,适用于弹出广告、注册层和最新消息展示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当打开页面或者刷新页面后等待两秒钟,会在底部滑出可最小化的提示层。滑出层半透明,可关闭再现。
应用范围很广,比如弹出广告、弹出注册层、弹出最新消息等,实现的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="http://www.jbxue.com/phtml/jqtexiao/index/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://www.jbxue.com/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://www.jbxue.com" target="_blank" style="color:#000">脚本之家</a>(<a href="http://www.jbxue.com" style="color:#000" target="_blank">http://www.jbxue.com</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="http://www.jbxue.com" target="_blank">http://www.jbxue.com</a>,<br/>专门分享实用、常用的技术文章代码资源的网站</p>
<div class="ask"><a href="http://www.jbxue.com/">首页</a>
<a href="http://www.jbxue.com/ablut/">关于</a>
<a href="http://www.jbxue.com/a/bjac/kjsrt3b0.htm">jQuery AJAX</a>
<a href="http://www.jbxue.com/a/bjac/182di68b.htm">导航样式</a>
<a href="http://www.jbxue.com/a/bjac/mt97p5y9.htm">侧边导航</a>
<a href="http://www.jbxue.com/dev/3068696139522ae4.htm">树形菜单</a>
<a href="http://www.jbxue.com/game/1/">捕鱼</a>
<a href="http://www.jbxue.com/game/3/">打地鼠</a>
<a href="http://www.jbxue.com/game/4/">美女拼图</a>
<a href="http://www.jbxue.com/phtml/silverlight/">猜数字</a>
</div>
</div>
<div class="close"></div> 
</div>
<img class="mini" src="http://www.jbxue.com/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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值