Forum Moderators: martinibuster

Message Too Old, No Replies

How to change order of the ads?

         

dzcap

3:04 am on Aug 14, 2005 (gmt 0)

10+ Year Member



My index page shows 2 ad units, the first is a 468x60 banner loaded in a header file, and the second is a 250x250 square in the content section.

Getting a ridiculous 4 cents a click, how do I reverse the ad units loading order?

Knappster

4:04 am on Aug 14, 2005 (gmt 0)

10+ Year Member



. . . how do I reverse the ad units loading order?

Usually this sort of thing is done with CSS. The trick is to have your content appear higher up in the HTML than the header, but display below it.

In your case, you can use absolute positioning. In other words, put your content between div tags, followed by your header between div tags, like this:

<div style="position:absolute;top:60px;left:0px;">content</div>

<div style="position:absolute;top:0px;left:0px;">header</div>

Adjust the "top" and "left" parameters as needed.

dzcap

2:20 pm on Aug 14, 2005 (gmt 0)

10+ Year Member



Using relative positioning to account for the different screen resolutions, so far looks like its working great, thanks for the idea.