Jump to content

resolution


otuatail

Recommended Posts

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
Share on other sites

<?

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.