Search Help Board

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
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: ">

// layer html //

func should be somethinglike that

func {

if ( $screen_width <= 800 )
return "hidden";
else return "visible";


does it make sense ?

?Re: screen resolution
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
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...?

Go to Top??|??Go to Topic??|??Threaded View??|??Search?
New Topic
?Reply To This Message
?Your Name:
?Your Email:
Email replies to this thread, to the address above.

Provided By