插件描述:弹框消失的各种效果,应该会有你需要的。
<html>
<head>
<link rel="stylesheet" href="css/base/jquery.ui.all.css" />
<script src="js/jquery-1.6.2.js"></script>
<script src="js/jquery.effects.core.js"></script>
<script src="js/jquery.effects.blind.js"></script>
<script src="js/jquery.effects.bounce.js"></script>
<script src="js/jquery.effects.clip.js"></script>
<script src="js/jquery.effects.drop.js"></script>
<script src="js/jquery.effects.explode.js"></script>
<script src="js/jquery.effects.fold.js"></script>
<script src="js/jquery.effects.highlight.js"></script>
<script src="js/jquery.effects.pulsate.js"></script>
<script src="js/jquery.effects.scale.js"></script>
<script src="js/jquery.effects.shake.js"></script>
<script src="js/jquery.effects.slide.js"></script>
<link rel="stylesheet" href="css/demos.css" />
<style>
.toggler { width: 500px; height: 200px; }
#button { padding: .5em 1em; text-decoration: none; }
#effect { width: 240px; height: 135px; padding: 0.4em; position: relative; }
#effect h3 { margin: 0; padding: 0.4em; text-align: center; }
</style>
<script>
$(function() {
// run the currently selected effect
function runEffect() {
// get effect type from
var selectedEffect = $( "#effectTypes" ).val();
// most effect types need no options passed by default
var options = {};
// some effects have required parameters
if ( selectedEffect === "scale" ) {
options = { percent: 0 };
} else if ( selectedEffect === "size" ) {
options = { to: { width: 200, height: 60 } };
}
// run the effect
$( "#effect" ).hide( selectedEffect, options, 1000, callback );
};
// callback function to bring a hidden box back
function callback() {
setTimeout(function() {
$( "#effect" ).removeAttr( "style" ).hide().fadeIn();
}, 1000 );
};
// set effect from select menu value
$( "#button" ).click(function() {
runEffect();
return false;
});
});
</script>
</head>
<body></body>
</html>
<html>
<head></head>
<body>
<div class="toggler">
<div id="effect" class="ui-widget-content ui-corner-all">
<h3 class="ui-widget-header ui-corner-all">Hide</h3>
<p> Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. Nulla lorem metus, adipiscing ut, luctus sed, hendrerit vitae, mi. </p>
</div>
</div>
</body>
</html>