I am trying to have my JavaScript check to see if a background is loaded (loaded by jquery.ready function, if the background or the background div is loaded then i want it to set 2 href links, if the background fails to load or something goes wrong then the hrefs are set to nothing or #. I have done a few different ways and tried to mix and match some code but it seems i can't get it to work right. Any help would be great, i have search high and low on google, here and have tried for a while to make the code work in one way or another.
again thanks!