This is what I'm trying to do...
Whenever a link is clicked on my page I want to run a function and then when its complete I want to go to the link address. The code below does the animations but doesn't go to the link. Yes I know alt isn't a valid attribute for an anchor I'm just not sure what to do. Any ideas?
Code:
$('a').click(function() {
soundManager.play('sound2');
$('#img2_wrap').fadeOut(1500);
$('#img3_wrap').fadeIn(1500, function() {
$('#Content').animate({ width: "150%", top: "150px" }, 1200, function() {
window.location = $(this).getAttribute('alt');
});
$('#img3_wrap').animate({ height: "240px" }, 1000);
});
});
HTML Code:
<span>
<a href="#" alt="http://www.google.com">Text!</a>
</span>
__________________
Firefox
rediscover the web
Please login or register to view this content. Registration is FREE Down with internet explorer!
|