Well then it appears cacheing can be ruled out as a probable cause.
I noticed you're using window.onload. Are you sure that the div 'barber_pole' has been loaded when it tries to access it? If not, then it will just load in with the pre-loop content (as you said is happening). You might look into jQuery's .ready() function, which waits until all of the elements are ready before calling a function.
P.S. Switching to jQuery in my development for this stuff saved me a load of headaches in terms of cross-browser problems.
I noticed you're using window.onload. Are you sure that the div 'barber_pole' has been loaded when it tries to access it? If not, then it will just load in with the pre-loop content (as you said is happening). You might look into jQuery's .ready() function, which waits until all of the elements are ready before calling a function.
P.S. Switching to jQuery in my development for this stuff saved me a load of headaches in terms of cross-browser problems.
Comment