Demo of Jquery Drop UI effects
Apply different Drop effects by clicking the buttons
CSS
<style>
.msg{
position: absolute;
FONT-SIZE: 12px;
font-family: Verdana;
padding:10px;
width:350px;
background-color: #f1f1f1;
width: 480px;
height: 100px;
}
</style>
HTML
<input type=button id=b1 value='drop 5000ms'>
<input type=button id=b2 value='drop fast'>
<input type=button id=b3 value='drop slow'>
<input type=button id=b4 value='Drop Default'>
<input type=button id=b5 value='Drop Right ( fast )'>
<input type=button id=b6 value='Drop Left ( slow )'>
<input type=button id=b7 value='Drop Up'>
<input type=button id=b8 value='Drop Down (6000 ms)'>
jquery
<script>
$(document).ready(function() {
$('#b1').click(function(){
$( "#d1" ).effect( "drop",5000,function(){
alert('This alert is created by using callback function once the effect is over');
} );
})
/////////
////////////////////
$('#b2').click(function(){
$( "#d1" ).effect( "drop",'fast' );
})
$('#b3').click(function(){
$( "#d1" ).effect( "drop",'slow' );
})
$('#b4').click(function(){
$( "#d1" ).effect( "drop");
})
////////////////////
$('#b5').click(function(){
$( "#d1" ).effect( "drop",{direction: 'right'},'fast');
})
$('#b6').click(function(){
$( "#d1" ).effect( "drop",{direction: 'left'},'slow');
})
$('#b7').click(function(){
$( "#d1" ).effect( "drop",{direction: 'up'});
})
$('#b8').click(function(){
$( "#d1" ).effect( "drop",{direction: 'down'},6000);
})
})
</script>