jquery顶部带弹簧效果弹出层点击click事件文本弹跳框效果实现源码下载
0、请不要问“在不在”之类的问题,有问题直接问!1、学生或暂时没有工作的童鞋,整站资源免费下载!2、¥9.9充值终身VIP会员,加我微信,826096331 拉你进VIP群学习!3、程序员加油,技术改变世界。在线 充值
<div id="main">
<a class="button" href="#">点击我</a>
<p>Unfortunately, for it to work, your buttons have to be <strong>that big</strong>.<br />
Just kidding.</p>
</div>
<div id="box">
<p><b>Title!</b>Boring explanation.</p>
</div>
$(document).ready(function(){
/* Converting the #box div into a bounceBox: */
$('#box').bounceBox();
/* Listening for the click event and toggling the box: */
$('a.button').click(function(e){
$('#box').bounceBoxToggle();
e.preventDefault();
});
/* When the box is clicked, hide it: */
$('#box').click(function(){
$('#box').bounceBoxHide();
});
});
友情提示:垃圾评论一律封号 加我微信:826096331拉你进VIP群学习群