?

Search Help Board

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

// layer html //


func should be somethinglike that

func {

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

}

does it make sense ?

?Topics Author? Date
?screen resolution??new
Rob 10-16-03 22:13?
?Re: screen resolution??new
bastien 10-17-03 20:09?
?Re: screen resolution??new
Guido 12-13-03 08:34?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > 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 ? ">??

Provided By
Phorum