English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

When different people go to my website some have small monitors other have large. Some are set at 640X480 and others as high as 1280X1024.

Things don't display correctly. I would like to have a code that could display the correct page for the visitor.

I would simple make multiple pages and direct the viewer to the page that would display properly for them.

I need to some way to get that information from the visitor and then give them the option.

One page that does this is
http://www.dailyoverlook.com/

2007-01-11 04:18:34 · 3 answers · asked by the ancient 2 in Computers & Internet Programming & Design

3 answers

I think what your looking for is right here.

http://www.dynamicdrive.com/dynamicindex9/info3.htm

They have a script there that does just what you want!

2007-01-11 04:24:47 · answer #1 · answered by SteelerFan_2006_ 5 · 0 0

That site uses php headers to do it.

Here's a javascript solution: http://www.pageresource.com/jscript/jscreen.htm

And heres a php&javascript solution:


PHPBuddy getting screen resolution


if(isset($HTTP_COOKIE_VARS["users_resolution"]))
$screen_res = $HTTP_COOKIE_VARS["users_resolution"];
else //means cookie is not found set it using Javascript
{
?>

}
?>


echo "Your Screen resolution is set at ". $screen_res;
?>

2007-01-11 12:22:55 · answer #2 · answered by private 4 · 1 0

Why not just code your (X)HTML documents with a fluid design utilizing CSS?

2007-01-11 20:41:43 · answer #3 · answered by DianeD 4 · 0 0

fedest.com, questions and answers