[url]http://javascript.internet.com/css/style-sheets-by-resolution-2.html
Can the script at above link be modified to display different images rather than link to another style sheet?
I would have thought just placing it in the body and changing the code to
[CODE]if (winW <= 1024) {
document.write(‘<img src=”image1.jpg”>’);
}
if (winW <= 800) {
document.write(‘<img src=”image2.jpg”>’);
}
would do the trick but I just wanted to check if this is the best way to do things or if there is another way. The site I want to use it for is [url]www.ufreak.net/new