"Craig Jansen" wrote in message
I have been told in an earlier post that a java script may be the best way to add to my web page to enable it to be viewed full page whatever the user’s monitor res is set to.
Is this the case ?
Of so does anybody have one .
Or if there is abetter solution please let me know.
Erik Muna wrote:
I don’t think it’s a very good idea to use Java since some browsers don’t come with the ability to read it so people will have to d/l the plugin for their browser and blah blah blah. Just use tables with width set to 94% to 100% and it’ll resize itself to however big the window is and whatever resolution the monitor is set to.
My suggestion was to use JavaScript (not java), to determine the client screen resolution and select which image to download on that basis.
The nice thing about this is the browser does not need to do a resize, and the image can be totally optimized for the target display size.; For example, the images may be sharpened to more closely match the final display rez.
Here is a link an examples:
http://javascript.internet.com/user-details/resolution-image .html
In case the link is broken, here is a code originally posted by Gareth Church on comp.lang.javascript:
function redirectPage() {
var url640x480 =
http://www.fitzgeraldmenswear.ie/main_blah.html; var url800x600 = "
http://www.fitzgeraldmenswear.ie/main.html"; var url1024x768 = "
http://www.fitzgeraldmenswear.ie/main_s.html";
if (screen.width < 800) {
window.location.href= url640x480;
}else {
if (screen.width < 1024) {
window.location.href= url800x600;
} else { //screen size of 1024×768 or larger
window.location.href= url1024x768;
}
}
—
Mike Russell
www.curvemeister.com
www.geigy.2y.net