mosme
12-09-2002, 07:38 AM
How do i type when i want a diffrent picture showed to user when the user is using screen-resolution 800x600??
/Mona
/Mona
|
Click to See Complete Forum and Search --> : diffrent picture with diffrent screen-resolution mosme 12-09-2002, 07:38 AM How do i type when i want a diffrent picture showed to user when the user is using screen-resolution 800x600?? /Mona AdamGundry 12-09-2002, 11:07 AM The window.screen.width and window.screen.height objects allow access to the monitor's properties, so you should be able to do this: if (screen.width = 800){ document.write("<img src='img1.gif'>"); } else { document.write("<img src='img2.gif'>"); } There is information on the screen object here (http://developer.netscape.com/docs/manuals/communicator/jsref/wina3.htm#1090331). Adam mosme 12-09-2002, 11:19 AM Thank you very much!! Itīs working /Mona webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |