I think this is a bad idea from a usability standpoint... But... Untested Code: $('a').click(function(){ var hrefLoc = $(this).attr('href'); $('body').fadeOut("slow",function(){ window.location = hrefLoc; }); return false; });
Might be a better way to do it, here you go. AllexS -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of schnuck Sent: Thursday, February 07, 2008 3:17 PM To: jQuery (English) Subject: [jQuery] intercepting links and adding a short animation before executing them hello guys, the title tells it all really: intercepting links and adding a short animation before executing them this might be the most amateur question for tonight - however an answer would be very appreciated. example: i have a simple navigation in an unordered list. i want to make the page i am on fade away in a smooth short animation before the onclick- event is actually executed. thanks in advance for any help. s