View Full Version : image shown wrong on another resolution

10-10-2003, 04:50 PM
I've got a site with frames (All Time Gaming (http://www.alltimegaming.com)) but I want to do it without frames so I'm going to use the insert() function of php and use a header and footer. But the main image is very big and I want it to be shown correctly in every browser and resolution. Is there a script wich I can use to use another image for people with a different browser or resolution? Or do u know another solution? plz let me know. Here is the testpage without frames Testpage without frames (http://www.alltimegaming.com/phptest/test01.php) (dont mind the orange, its not finished yet :p ) . Can you see the image or do u have to scroll?

thx, g0liatH

10-10-2003, 07:36 PM
PHP cannot determine screen resolution of a persons computer. You would need to javascript to retrieve that. Once you have that you could pass it along to PHP but it would require either a 2 page setup or reloading the current page as first you would need to load the page and have the javascript retrieve the value and then it would need to be sent to the server to PHP can process it and output the proper image.

10-10-2003, 08:54 PM
ok I could do that but how do other sites do it because I think there has to be an easier way :confused: