Let’s say I have a loading indicator image, I want it to display nicely on any kind of background color.
is this possible through some sort of combination of jquery and css?
jquery to decide if the background is light or dark, and css to apply some sort of mask to the loading indicator to change it’s color to the calculated value?
Is anything like this out there?
Thanks,
Wesley
Just on the CSS side, you could stack a div on top of your loading image, give it a background-color, and make it see-through.
HTML:
CSS:
Then you could just use jQuery to set the actual
background-coloron#loadingColor:Best of all, it works in IE6+!