views:

332

answers:

3
+2  Q: 

jquery time delay

i used this

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt;
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt;

<script>
  $(document).ready(function() {
    $( "#navigation" ).accordion( "option", "active", -1 );
  });
</script>

i am developing accordin but i need to set time for accordin. how can i set time for opeing and closing in according?

A: 

For this you can use the SetInterval function provided by javascript.

Check following link for more detail: http://www.elated.com/articles/javascript-timers-with-settimeout-and-setinterval/

By this function you can easily set time delay.

Pranay Rana
A: 

JqueryUI doesn't allow you to change the opening and/or closing speed of the accordion elements.

Ben
A: 

Do you mean how to control the speed of the animation??

just use

.accordion({ animated: 'bounceslide' });

you can change bounceslide to whatever easing method that is supported as long as you include the UI Effects Core

Serge