Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-07-2004, 11:23 AM   #1
Andy
Confirmed User
 
Join Date: Jan 2001
Location: A nice little folder on some C drive inside a huge server ;)
Posts: 460
well .. so PHP guys .. how to get HEIGHT of the page in pixels ?

is there some useful piece of code that can do this ?
like .. get remote page height ?
__________________
Submit Your Movie Galleries Trade Movie Traffic: 43559081
Andy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2004, 11:36 AM   #2
Volantt
Confirmed User
 
Join Date: Nov 2003
Location: Penguin vs Devil
Posts: 745
Quote:
Originally posted by Andy
is there some useful piece of code that can do this ?
like .. get remote page height ?
Not in PHP since it is a server side scripting language.

You will have to use J A V A S C R I P T

See: http://developer.irt.org/script/1166.htm


V
__________________
"Only the dead have seen the end of war." - Plato
"In the abscence of orders, go find something and kill it." - Erwin Rommel
"A man's worth is no greater then the worth of his ambitions." - Marcus Aurelius
Volantt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2004, 11:39 AM   #3
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
One method I've used is to grab the size via hahahahahahahahahaha and store it in a cookie or post it back on the next page update. Here's an example to return page width, which I used to adjust page layouts dynamically:

PHP Code:
function findWidth() {
  if (
self.innerHeight) return self.innerWidth// all except Explorer
  
if (hahahahahahahahahahadocumentElement && hahahahahahahahahahadocumentElement.clientHeight) return hahahahahahahahahahadocumentElement.clientWidth// Exp
lorer 6 Strict Mode
  
if (hahahahahahahahahahabody) return hahahahahahahahahahabody.clientWidth// Other DOM compliant browsers
  
return 1024// "None of the above"

I'd then put that value in a cookie for php's use. You might also want to track resize events if it's important to know the size at all times.
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2004, 11:40 AM   #4
rickholio
Confirmed User
 
Industry Role:
Join Date: Jan 2004
Location: Nor'easterland
Posts: 1,914
oh ffs... how the hell is anyone supposed to demonstrate code with that obnoxious filtering?
rickholio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-07-2004, 11:46 AM   #5
4Pics
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Posts: 7,952
post a link to it on your server as a phps file so we can see it?
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.