Mortgage - 0 Credit Cards - 2008 NFL Draft Order - Xbox Mod Chips - Flights

PDA

View Full Version : check the height of a page with dynamic vertical content


david_sakh
Jan 18th 2005, 12:16 pm
I want to perform a function if the height of the page is over a certain pixel value. Is this possible?

digitalpoint
Jan 18th 2005, 12:17 pm
No... PHP generates the output before the code is rendered. Your best option would be something in JavaScript.

T0PS3O
Jan 18th 2005, 12:18 pm
Not with PHP. Javascript can get at least the screen resolution as well as the current browser window resolution. Get those values into PHP and take it from there.

Not a JS wizz so can't help further than this...

david_sakh
Jan 18th 2005, 12:21 pm
Not with PHP. Javascript can get at least the screen resolution as well as the current browser window resolution. Get those values into PHP and take it from there.

Not a JS wizz so can't help further than this...

I'll do some javascript searches, but I haven't done much with it before, other than look at scripts others have made, but this doesn't sound all that difficult. If you want to move this topic shawn, i'll understand.