Hey all,

Got the accordion script from another site (can’t remember where exactly) and modified it to fit my needs,  But now I need to have the text fade in once a “tab” is opened and fade out then close when an other tab is clicked.

 

Here is the link with out the fadeIn/fadeout: http://ierev.informationexperts.com/

 

I’ve made this change which more or less works (need to set the content to not visible to start) for opening a tab:

 

<code>

$(d).children(contents).slideDown(showSpeed, function(){--running, $(this).children(maincontents).fadeIn(500);});

</code>

 

I figured I’d do something like below to close tab, but is not working as expected:

 

<code>

$(active).children(maincontents).fadeOut(250, function(){$(items).children(contents).not(':hidden').slideUp(250, function(){--running;});});

</code>

 

Any suggestion would be great.

 

Thanks,

 

Benjamin Sterling

KenzoMedia.com

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to