I would like to have a responsive image arrangement for backgrounds on a site.
For example, based on different screen resolutions, I would like for different background images to load. Further it would be useful if I could define different behaviors; for example, a higher resolution desktop would have a larger stretched background image, while a netbook might have a smaller version of that shrunk to fit, or while a 3GS iPhone would have a small tiled image.
How would you implement such a scenario?
I believe this will help you solve your problem. I came across the following library today on an unrelated Google expedition: eCSSential. It looks to be the ticket. You can use the library to detect screen sizes, and load the appropriate CSS files, taking into consideration the current viewport, and the screen size for the current device. Pretty nifty.
Combined with the previous part of my answer, I believe you will have a pretty good way of dealing with your problem.
The below is just an example of the screen sizes you can query for, but you get the idea. The background can be styled for each scenario.
background can be styled differently for any resolution, for instance:
Credit: Most of this from CSS Tricks