Hi,
I’ve looked everywhere for a forum specific to jQuery but couldn’t find anything so I thought I’d try here.
I’m new to javascript/jquery and I’m attempting to do what appears to be a very simple thing: when the page loads on the site I’d like the div containing the main content to fade in. I’ve wrapped the content in a divi with the class of fader and then used this code:
$(document).ready(function(){
$(".fader").fadeIn(2000);
});
It seems to work when the page loads the first time but occasionally (specifically in FireFox and Safari… I haven’t seen in happen in IE yet) when the page is reloaded the text does not fade in. I’ve noticed something similar in firefox before using flashvars with swf files, once FireFox had loaded the swf it no longer loaded the flashvars. I solved that problem by loading the flashvars on a delayed timer rather than on page load but I’m not sure how to do something similar in javascript/jQuery.
If any body has an idea as to why this is happen or how to get around it I’d greatly appreciate it.
Thanks in advance for any assistance you can provide.