I've used a javascrtipt reolution sniff to load a particular image depending on resolution.
See below
<SCRIPT LANGUAGE="JavaScript1.2">
if (screen.height >= 768 && screen.width >= 1024) {
document.write("<img src='webimages/tableopener/largeopen.gif' width=900 height=380 border=0>"
;
}
else {
if (screen.height == 600 && screen.width == 800) {
document.write("<img src='webimages/tableopener/mediumopen.gif' width=700 height=289 border=0>"
;
}
else {
document.write("<img src='webimages/tableopener/smallopen.gif' width=550 height=222 border=0>"
;
}
}
// End -->
</script>
Can this be modified somehow so it can be used to set the background image of a table cell, depending on the resolution?
See below
<SCRIPT LANGUAGE="JavaScript1.2">
if (screen.height >= 768 && screen.width >= 1024) {
document.write("<img src='webimages/tableopener/largeopen.gif' width=900 height=380 border=0>"

}
else {
if (screen.height == 600 && screen.width == 800) {
document.write("<img src='webimages/tableopener/mediumopen.gif' width=700 height=289 border=0>"

}
else {
document.write("<img src='webimages/tableopener/smallopen.gif' width=550 height=222 border=0>"

}
}
// End -->
</script>
Can this be modified somehow so it can be used to set the background image of a table cell, depending on the resolution?