![]() |
Determine size of browser windows?
Hi, does anyone know if there is a way to have a title image change size for different browser window sizes? like an 800pixel width graphic for an 800x600 window, and say an 1024pixel width graphic for the 1024x768 window!
Is this even possible? |
Flash can do that. I don't know of anyway to have a jpg or gif do that.
|
Flash or javascript.. but either way too much effort..
Build for 800:) DD |
Quote:
|
You can do this in a few ways...
With Javascript you need to detect what the resolution is with something like this... http://www.pageresource.com/jscript/jscreen.htm Then you need some "if" statements which will select a different graphic for 800x600, 640x480 and then an "else" statement for 1024x768 + any other res. Another option would be to redirect by resolution using php. Either by selecting an include for the graphic based on what the php reads from the browser. But if I was you, I would create a graphic which is about 700 wide and then stick it inside a table with a background color (inside the table cell) to match the graphic, so you can't see the join. Then set the table width to "100%" instead of specifying a pixel width. Then the page will look filled, no matter what res you view it with. |
Thanks alot urb,
I'm doing the table idea (i thought along the same lines!) The reason i was asking was i thought for bigger type sites(such as linklists, tgp, and premium avs sites i would like to alter the size of graphics displayed to maximize the sales pitch for each browser! Anyway i really appreciate the forward on the javascript page!|shake| |
All times are GMT -4. The time now is 08:25 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc