Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2003
    Location
    Belgium
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    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

  • #3
    New Coder
    Join Date
    Aug 2003
    Location
    Belgium
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok I could do that but how do other sites do it because I think there has to be an easier way
    g0liatH


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •