I load them both and use CSS to display one of them, depending on screen width (I use display:block for one and display:none for the other).
It works, but it is not too elegant.
I wonder if this can be done differently, something like
Code: Select all
if screen has phone size
load phone-banner.jpg
else
load desktop-banner.jpg
endif
Frank