hi, i want to know the right function on determining the right screen resolution. for example 800 x 600 or 1024 x 768.
thank you very much in advance.
This is a question for ClientSide Technologies, u need to use javascript (screen.width, screen.height)
And I'll move it there now...
<?php /* php using Javascript variables - embedded in php. Refreshing the page and getting the screen height and width */ if (isset($_GET['width']) AND isset($_GET['height'])) { // output the geometry variables echo "Screen width is: ". $_GET['width'] ."<br />\n"; echo "Screen height is: ". $_GET['height'] ."<br />\n"; } else { // pass the geometry variables // (preserve the original query string // -- post variables will need to handled differently) echo "<script language='javascript'>\n"; echo " location.href=\"${_SERVER['SCRIPT_NAME']}?${_SERVER['QUERY_STRING']}" . "&width=\" + screen.width + \"&height=\" + screen.height;\n"; echo "</script>\n"; exit(); } ?>