Window resize
-
Good day! How knows how to get the browser's window size. And one more - how to dynamicly change size of background picture. Thank you very much. Good luck!
Dimon007 wrote: How knows how to get the browser's window size You can use:
window.screen.availHeight
window.screen.availWidthto get the Windows available height and width. To change the size of a background picture you have to change the size of it's "container". i.e. If you have set the background image of a TD then you need to change the size of the actual TD. regards, Paul Watson Bluegrass Cape Town, South Africa "The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge Sonork ID: 100.9903 Stormfront
-
Good day! How knows how to get the browser's window size. And one more - how to dynamicly change size of background picture. Thank you very much. Good luck!
Dimon007 wrote: How knows how to get the browser's window size. Sorry, you can't get the size of the window. What you can get, is the width and height of the clientarea. document.body.clientWidth document.body.clientHeight which will tell you how much space is available to your page. You can move and resize the window using window.moveTo and window.resizeTo methods (and window.moveBy and window.resizeBy). And one more - how to dynamicly change size of background picture. You can't resize background images. You'll need different images in different resolutions. - Morten