Thanks! All working now. Looks great. One question, how do I stop browsers pausing animated gifs when loading the page? I have added a loading.gif that fades in when the tab has slid up. However firefox and ie both pause the gif when the next page is loading and it looks rubbish. Safari works fine.
On Jun 25, 11:31 am, andrea varnier <[EMAIL PROTECTED]> wrote: > On 25 Giu, 11:07, Pegpro <[EMAIL PROTECTED]> wrote: > > > How can I make jquery do an effect when clicking a link and when it is > > finished animating follow the link? > > you can use a callback function, that is to say a function that is > called when the effect has finished :) > fadeOut, for example: > > $('a.myClass').click(function(e){ > e.preventDefault(); > var $this = $(this), link = $this.attr('href'); > $this.fadeOut(function(){ > window.location = link; > }); > > });