jquery顶部带弹簧效果弹出层点击click事件文本弹跳框效果实现源码下载
淘建站为您提供更多_悬浮层/弹出层_弹窗_顶部_弹出层,在此特别感谢您对我们的支持与厚爱!
演示不了,点击反馈
下载 161 次
22 积分
<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();
});
});

