Forum Moderators: coopster

Message Too Old, No Replies

Is this possible?

         

wardy83

11:01 am on Dec 19, 2007 (gmt 0)

10+ Year Member



I hope there is a way but not sure!

Basically, I have a site with three columns: left, center and right.

I want to put a flash banner in the center column but when the site is resized to 800x600 it screws up and overlaps the columns.

The only way around keeping the size and not overlapping the columns would be to have it above the columns. But if I do this it wont look right in any resolution above 800x600.

Is there a way around this?

ie. It appears above the columns for 800x600 res and in the center div for anything above?

Maybe PHP?

deMorte

1:55 pm on Dec 19, 2007 (gmt 0)

10+ Year Member



Hello.

I'm not sure if you can detect screen resolution with PHP but found a JavaScript that does it:


<script type="text/javascript">
<!--
if ((screen.width<=800) && (screen.heigh<=600))
{
window.location="banner_above.html";
}
else
{
window.location="normal_banner.html";
}
//-->
</script>

So you'll load a page with banner above the layout if resolution is 800x600 or below and the normal layout if above.

I'm not a JavaScript expert, but I figure that would work.