how ca i make Description panel to pause after it is shown on the slideshow?

Posted by ershad on Stack Overflow See other posts from Stack Overflow or by ershad
Published on 2011-01-07T14:46:32Z Indexed on 2011/01/07 14:54 UTC
Read the original article Hit count: 192

Filed under:

I am new to Javascript. I have a slide show with images fading and description coming from left to right. I need to pause the description panel for some sec. How can i do that?

The code is:

showhidedescpanel:function(state, animateduration){
    var setting=this.setting

    var endpoint=(state=="show")? setting.dimensions[1]-setting.panelwidth : this.setting.dimensions[1]-410     
    setting.$descpanel.stop().animate({left:endpoint}, (2000), function(){                                                                          
        if (setting.descreveal=="always" && state=="hide")
            setting.$restorebutton.css({visibility:'visible'}) //show restore button
    })      
}

© Stack Overflow or respective owner

Related posts about JavaScript