I run a skyscrape ad for AdSense on my site. The problem is, anyone with less than 1024x768 resolution has the problem where instead of displaying on the right side, ads are stuck at the bottom due to a lack or horizontal space.
I figure that the best way to get around this is is to have some PHP? that does something to the effect of grabbing the visitor's resolution and displaying the ad on the side if >=1024x768 and displaying a horizontal ad at the top only if resolution is less than that. Ideas?
Originally posted by airnine <script>
or you could always try paying someone to do it for you
First, I would hire someone if I could afford it. As it is, there are never enough coders for the site to do the needed work.
That script looks like it opens a new window or something like that?
What I am looking for is something like
If resolution < 1024x768 then display xxx
If resolution >= 1024x768 then display <blank>
Is there any way to get client's screen resolution in that case?
Good question. My theory is as follows:
It is too much of a pain in the arse to design a site that looks the same across all browsers and configurations. I will make a reasonable effort, but if you don't even have JS installed, don't bother going to my site.
to pcgamez; why check the height of the screen? wouldn't only the width be adequate?
Error in Macromedia docs for System.capabilities...
I tried using System.capabilities.screenResolution.x, but it didn't work. I did a search on the web and found a page on Macromedia's site saying that their docs were wrong -- here's what I copied directly from their site:
This entry should read: System.capabilities.screenResolutionX .(There should be no period following Resolution .)
This entry should read: System.capabilities.screenResolutionY .(There should be no period following Resolution .)
If you'd like to see the full list of revisions in the docs, go to (Macromedia's main site -- www_dot_macromedia_dot_com)/support/flash/documentation/flash_mx_errata/flash_mx_errata03.html