|
|
 |
|
|
Pages: 1
Is there any way to auto-adjust webpage resolution with desktop resolution?
(Click here to view the original thread with full colors/images)
Posted by: Huda
Can a website designer detect a user's screen resolution and adjust webpage's resolution accordingly?
Posted by: DemonBob
Yes,
With the combination of server side scripting and client side scripting, it is possible:
Code:
<script language="javascript">
<!--
document.write('<a href=getscrsize.php?scrw='+screen.width+'&scrh='+screen.height+'>');
//-->
</script>
Clich here to tell what me your screen size is!</a>
Then, in the PHP script, you can get the screen size by using these two variables:
Code:
$_GET['scrw']
$_GET['scrh']
Posted by: Huda
Thank you very much.
|
|
|
|
|