Open Tech Support
Open Tech Support Archives
Back to HomeCommunityReviewsGuidesDownloadsTech LinksMarketplaceContact Us
 »  SITE NAVIGATION
»  OTS Home
»  OTS Forums
»  OTS Archives

»  About our site
»  Search our site
»  Support our site

»  What is this site?
»  Who are we?
 
 
 »  ADVERTISMENT
 
  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.



 
Copyright 2000-2008 Open Tech Support.  All Rights Reserved.  Site Design and Development by Tolitz Rosel.