My small contribution for cross domain add displays...

0 replies
Hey all,

I have been playing around with ways to have all my adds in a central place, and then load them from ANYWHERE.

The key was to be able to change the adds on the central repository, but, do nothing on all the pages they load to start with.

So, this is what I came up with.

First, you need a small JavaScript file, which you can name whatever you want:

Code:
var myads =
[
    'http://www.YourMainDomain.com/YourDirectory/YourAdd1.html',
    'http://www.YourMainDomain.com/YourDirectory/YourAdd2.html',
    'http://www.YourMainDomain.com/YourDirectory/YourAdd3.html',
    'http://www.YourMainDomain.com/YourDirectory/YourAdd4.html',
    'http://www.YourMainDomain.com/YourDirectory/YourAdd5.html'
];
document.writeln('<iframe src="', myads[Math.floor(Math.random()*myads.length)],'" id="addframe" name="addframe"width="100%" frameborder=0 height="100%"><\/iframe>');
The HTML files with the adds, should NOT include HEAD and BODY tags!

Also be aware that if the add is any more than a couple of lines, you will need to play around with: height="100%", and change it to pixels and not %.

Now, all you need to do, is add this one line on ANY domain, on ANY page, for your adds to run:

Code:
<script language=javascript src="http://www.YourMainDomain.com/YourDirectory/YourAddScript.js"></script>
That's it! Now, on those pages, you will have your adds display randomly. When you want to add or remove adds, you just need to edit the 1 JavaScript file.

You can add in as many lines for the HTML adds as you want!

You can even do this for multiple niches. Just have a separate directory, or sub-directory for each niche you want adds to run for.

ENJOY!!!
#add #contribution #cross #displays #domain #small

Trending Topics