Demo of Jquery Highlight UI effects


Highlight 500ms will end with callback function to show alert window.

Refresh this page
Apply Highlight effects by clicking the buttons





CSS


<style>
.msg{ 
position: absolute;
FONT-SIZE: 12px;
font-family: Verdana;
padding:10px;
width:350px;
height: 100px;
background-color: #f1f1f1;
}
</style>

HTML


<input type=button id=b1 value='Highlight 5000ms'>
<input type=button id=b2 value='Highlight fast'>
<input type=button id=b3 value='Highlight slow'>
<input type=button id=b4 value='Highlight Default'>
<input type=button id=b5 value='Highlight slow ( Color )'>

jquery


<script>
$(document).ready(function() {
$('#b1').click(function(){
$( "#d1" ).effect( "highlight",5000,function(){
alert('This alert is created by using callback function once the effect is over');
} );
})
/////////
////////////////////
$('#b2').click(function(){
$( "#d1" ).effect( "highlight",'fast' );
})

$('#b3').click(function(){
$( "#d1" ).effect( "highlight",'slow' );
})

$('#b4').click(function(){
$( "#d1" ).effect( "highlight");
})

$('#b5').click(function(){
$( "#d1" ).effect( "highlight",{color:"#00ffff"},'slow');
})

})
</script>