Pulsate effect using Jquery UI

Syntax of Pulsate effect using Jquery UI.

$( "#element" ).effect( "pulsate",speed,function(){

})
"pulsate" as effect. Here are the parameters

speed (Optional)
It can take these values

'fast'
'slow'
time in millseconds

Times (Optional)
Number of times the element should pulsate , default value is 5

callback function: (Optional)
We can use a callback function to execute once the pulsate effect is over

Default pulsate effect, d1 is id of our div layer.
$( "#d1" ).effect( "pulsate" );
Usually it is connected to Click event of a button, here button id is b1
$('#b1').click(function(){
$( "#d1" ).effect( "pulsate" );
})
To this we have added a callback Function to display an alert window


Here is the code
	
$('#b1').click(function(){
$( "#d1" ).effect( "pulsate",7000,function(){
alert('This alert is created by using callback function once the effect is over');
} );
})


plus2net.com



Post your comments , suggestion , error , requirements etc here .







Most Popular JQuery Scripts

1

Two dependant list boxes

2

Calendar with Date Selection

3

Data change by Slider

4

Show & Hide element
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer