I have got a script here that animates a div changing height, then after a label should appear. Under that I have return false so the next page doesn't load.
It works when it is like this
$("label#error-username_r").show();
return false;
However when I set the duration it ignores it, and ignores the return false and loads the next page like this:
$("label#error-username_r").show("fast");
return false;
Here is all of the code:
$("div#cover").animate
({
height: window.innerHeight*0.8
}, {queue:false, duration:300, easing:"backEaseInOut"}
);
$("div#cover-bottom").animate
({
height: window.innerHeight*0.2
}, {queue:false, duration:300, easing:"backEaseInOut"}
);
$("label#error-username_r").show();
return false;
`. It's not always necessary to have them within the header.
– woodykiddy Nov 11 '11 at 01:49