Hi,
I can't seem to get this sort of structure to work:
I know I've created the object OK, and I know all the URLs are OK. I'm just wondering if it is actually possible to do a CSS comparison within the if statement.
I can't seem to get this sort of structure to work:
Code:
if (myobject.style.backgroundImage == "url(../Images/bluebackground1light.jpg)") {
myobject.style.backgroundImage = "url(../Images/bluebackground1dark.jpg)";
}
I know I've created the object OK, and I know all the URLs are OK. I'm just wondering if it is actually possible to do a CSS comparison within the if statement.