User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » HTML Question Page [1]  
bjangel2
Veteran
277 Posts
user info
edit post

I have a quick question about HTML code.

I am trying to put code into a webpage I am making that recognizes the computer monitor resolution and will set the background image to that size. Does anyone know the code that I can do that with?


Thank you.

6/21/2006 1:20:48 PM

agentlion
All American
13936 Posts
user info
edit post

you can use javascript screen.width and screen.height to get the monitor resolution.
But the monitor resolution has nothing to do wwith the visible area in the browser, if that's what you're trying to optimize. All in all, probably a bad idea, unless you have a good specific reason.

http://www.pageresource.com/jscript/jscreen.htm
http://www.zimmertech.com/tutorials/javascript/21/page-resolution-detector-tutorial.php

[Edited on June 21, 2006 at 3:55 PM. Reason : .]

6/21/2006 3:55:08 PM

 Message Boards » Tech Talk » HTML Question Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.38 - our disclaimer.