otuatail Posted March 11, 2007 Share Posted March 11, 2007 I was looking at a website for downloading desktop images. It has a range of sizes depending on the resolution of the PC. It states the best resolution for me is 1024 x 768. How does it know. I could do with this information to taylor my website. Desmond. Link to comment https://forums.phpfreaks.com/topic/42230-resolution/ Share on other sites More sharing options...
interpim Posted March 11, 2007 Share Posted March 11, 2007 <? if(isset($HTTP_COOKIE_VARS["users_resolution"])) $screen_resolution = $HTTP_COOKIE_VARS["users_resolution"]; else //means cookie is not found set it using Javascript { ?> <script language="javascript"> <!-- writeCookie(); function writeCookie() { var today = new Date(); var the_date = new Date("December 31, 2010"); var the_cookie_date = the_date.toGMTString(); var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height; var the_cookie = the_cookie + ";expires=" + the_cookie_date; document.cookie=the_cookie location = 'show-user-screen-resolution-php.php.php'; } //--> </script> <? } ?> Link to comment https://forums.phpfreaks.com/topic/42230-resolution/#findComment-204859 Share on other sites More sharing options...
cmgmyr Posted March 11, 2007 Share Posted March 11, 2007 What is the website? What is your current resolution set at? 1024 x 768? Did you try changing your resolution to see if the "recommended" size changed? They might just have that hard coded because they just assume that 1024 x 768 is the "norm". Link to comment https://forums.phpfreaks.com/topic/42230-resolution/#findComment-204862 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.