Best Image Resolution For Different Web Browser Resolution
(Version 4.0+ Browsers) Loads an image with different dimensions based on the users screen resolution setting. Higher resolution browsers see an image with increased dimensions and lower resolution browsers see an image with decreased dimensions. This separation ensures that each browser sees the image size that looks best in their browser. Great use of JavaScript 1.2 also!
Script Demo:
N/A
JavaScript Code:
Insert this code into <head> tags |
Insert this code into <body> tags |
Instruction:
Change the IMAGE.gif to your image file URL. Can use a different image
name.
Change the width and height values to suit your needs.
| Webmaster » Web Programming » JavaScript » Browser Window » Best Image Resolution |
Related Links:
Sponsored Links
