1) Script Title: Ultimate Fade-in slideshow (v2.4)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...nslideshow.htm
3) Describe problem: Need help with onSlide event handler
In the script file fadeslideshow.js around line 141, there are settings that will hide the desc panel before the next slide (if peekaboo is being used).
I can't figure out how to get the same effect after adding an onslide event handler. I would like the onslide event to hide immediately before the next slide loads. My onslide event code is:Code:if (setting.descreveal=="peekaboo" && setting.longestdesc!=""){ //if descreveal is set to "peekaboo", make sure description panel is hidden before next slide is shown clearTimeout(setting.hidedesctimer) //clear hide desc panel timer slideshow.showhidedescpanel('hide', 0) //and hide it immediately }
Right now when the 'Next' button is clicked (or when it's in manual mode), the onslide event will continue even if the next slide is loading and the timing of the slideshow becomes out of sync. Basically, I want extraEffect to also hide when the desc panel hides but I'm not sure how to go about it. I hope someone out there can at least offer a hint.Code:onslide:function(curimage, index){ var imagearray=this.setting.imagearray var extraEffect="<div style=\"left:30px;position:relative;\"><img src=\"img/slide1-img.png\" \/><\/div>" jQuery('#extraEffect').delay(1000).fadeIn(1000); jQuery('#extraEffect').html(imagearray[index][4]);



Reply With Quote

Bookmarks