cdp103188
11-04-2007, 12:10 AM
Ok, so I am building a hunting website, and hunters like pictures. I want to write a code that will detect the length of the page they are on, divide it by the size of the thumbnail and decide how many images to insert onto the page in order to go from top to bottom, but no more or less.
I have already coded the random images and the math calculations and whatnot, but for right now I just have to hardwire a number into my $pageLength variable, which of course, makes the same number of images appear on every page ignoring the length of the page.
Is there a way to detect and store the length of the current page in pixels?
I have already coded the random images and the math calculations and whatnot, but for right now I just have to hardwire a number into my $pageLength variable, which of course, makes the same number of images appear on every page ignoring the length of the page.
Is there a way to detect and store the length of the current page in pixels?