Hello mates! I'm having a few problems using the animate() functions. The following piece of code works perfectly fine: $(document).ready(function(){ $('#aba').animate({width: '300px'}, 2000); $('#content').animate({width: '454px'}, 2000);
$('#aba').animate({width: '30px'}, 2000); $('#content').animate({width: '754px'}, 2000); }); (I know it's lame, I was just testing, haha) But when I create a function such as this one: function open() { $('#aba').animate({width: '300px'}, 2000); $('#content').animate({width: '454px'}, 2000); } and call it from a link the page reloads and nothing happens. I've tried using return false or working with onmouseover on span tag, but everytime the function is called I get this weird beaviour. Does anybody know how to fix this? Thanks in advance! Cheers.