Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-10-2003, 03:50 PM   PM User | #1
g0liatH
New Coder

 
Join Date: Aug 2003
Location: Belgium
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
g0liatH is an unknown quantity at this point
image shown wrong on another resolution

I've got a site with frames (All Time Gaming) 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 (dont mind the orange, its not finished yet ) . Can you see the image or do u have to scroll?


thx, g0liatH
__________________
g0liatH
g0liatH is offline   Reply With Quote
Old 10-10-2003, 06:36 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,233
Thanks: 4
Thanked 81 Times in 80 Posts
Spookster will become famous soon enough
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.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 10-10-2003, 07:54 PM   PM User | #3
g0liatH
New Coder

 
Join Date: Aug 2003
Location: Belgium
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
g0liatH is an unknown quantity at this point
ok I could do that but how do other sites do it because I think there has to be an easier way
__________________
g0liatH
g0liatH is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:50 AM.


Advertisement
Log in to turn off these ads.