Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS background-image replacement removes background Re: background-image replacement removes background

#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!