? |
PHP FAQ
PHP Articles
PHP Help
Bulletin Board
PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help
C# Help
|
? |
?screen resolution |
Author:??(---.dialup.edisontel.com)
Date:???10-16-03 22:13
is there a way to get screen resolution ( width or height )data and store it in a $var ?
i'd like to make a layer visible or hidden depending on screen res in this way ( sorry for code errors i'm not strong in it :) )
div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; overflow: visible; visibility: print $name=func() ?>">
// layer html //
func should be somethinglike that
func {
if ( $screen_width <= 800 )
return "hidden";
else return "visible";
}
does it make sense ?
|
|
?Re: screen resolution |
Author:??(---.cpe.net.cable.roger)
Date:???10-17-03 20:09
you need to write a javascript page to get the user environment and then autosubmit it to the server for php to process
|
|
?Re: screen resolution |
Author:??(---.telenet-ops.be)
Date:???12-13-03 08:34
'screen.width' and
'screen.height' are variables in witch the data are stored.
Maybe you can use these for your purpose...?
|
|
|