Can anyone tell me why the document ready function needs a call to function first please? I've been told that the setTimeout in the first below example (which does not work) would be evaluated and passed to ready, but I don't see what the difference would be for the function call in the second example (which works)?
$(document).ready(
setTimeout(
function(){
$('#set_3').innerfade({
animationtype: 'fade',
speed: 'slow',
timeout: 3000,
type: 'sequence',
containerheight: '180' });
},
2000);
);
$(document).ready(
function(){
setTimeout(
function(){
$('#set_3').innerfade({
animationtype: 'fade',
speed: 'slow',
timeout: 3000,
type: 'sequence',
containerheight: '180' });
},
2000);
}
);