This has less meaning than it could if we could see the markup.
But, assuming you know what you want in a general sort of way and the markup and other code support it, one could do:
Code:
$('#captionarea').hide();
$('#play').click(function(){
$('img#slide').fadeTo(500,0.05,function(){
$('#slide').attr('src','Assets/images/big/'+i+'.jpg');
$('#slide').fadeTo(500,1,function(){
$('#captionarea').show();
});
});
});
It might make more sense to:
Code:
$('#play').click(function(){
$('#captionarea').hide();
$('img#slide').fadeTo(500,0.05,function(){
$('#slide').attr('src','Assets/images/big/'+i+'.jpg');
$('#slide').fadeTo(500,1,function(){
$('#captionarea').show();
});
});
});
Either way, the play button would need to have already been parsed by the browser.
If you want more help:
Please post a link to a page on your site that contains the problematic code so we can check it out.
Bookmarks