Home › Forums › CSS › background-image replacement removes background › Re: background-image replacement removes background
July 30, 2011 at 3:14 pm
#84275
jtrinker
Participant
Hi joebob,
I’m trying to replace a low-resolution full screen background image with a high-resolution image after the high res image finishes loading. I found your code snippet but it doesn’t seemto be working for me.
****BACKGROUND IMAGE TRANSITION TEST****
*This is a test*
And then the jquery:
$(window).bind("load",function(){
$("html").addClass("bgHighRes")
});
When I test it only the low-res image loads. It seems like the jquery is loading the .bgHighRes css class but not the image. Any ideas?
Thank you!