This script replaces the Google AdSense code you (should) already have on your site, which you can remove.
Here's how it works.
Somewhere in your head tag, put
<script src="http://ads.revora.net/static/adscript.js" type="text/javascript"></script>
And in the place where you want the ads, put:
<script type="text/javascript">
revads_display();
</script>
This will give you standard-coloured, 728x90 pixels formatted ads. Many of you will want to change this, so see below.
Changing the look
The revads_display function can be given a parameter object with some settings, to make the ads appear the way you want them to.
Format
There are four available formats:
* 468 x 60 pixels
* 728 x 90 pixels (this is the default)
* 120 x 600 pixels
* 160 x 600 pixels
You can choose one by setting format to one of: "468x60", "728x90", "120x600" or "160x600" (Exactly like that).
Example:
<script type="text/javascript">
var options = {format: "120x600"};
revads_display(options);
</script>
Colour Palettes
Unfortunately, Google doesn't permit the use of custom colours anymore; we have to work with colour palettes, which are centrally managed. As the ad implementation progresses, we will add more palettes for you to choose from.
<script type="text/javascript">
var options = {googleAdPalette: "seaside"};
revads_display(options);
</script>
The available palettes are:
* seaside: Standard white/blue palette (default)
* t3a: T3A red/orange palette (currently only available for T3A, T3A default)
Division Name
We like to track from which divisions the most clicks come. If your site address is not a standard subdomain (not mod1.the3rdage.net or mod2.iceforget.net etc. but your own domain like myubermod.com) you must add an option which contains the name of your division:
<script type="text/javascript">
var options = {division: "cnc"};
revads_display(options);
</script>
The available codes are:
* cnc: C&C Guild
* t3a: The 3rd Age
* if: IceForge
* petro: Petrolution
* revora: Revora
Combined
Naturally, you can combine several parameters:
<script type="text/javascript">
var options = {
format: "120x600",
googleAdPalette : "seaside"
};
revads_display(options);
</script>
The real fancy people can even do it like this
<script type="text/javascript">
revads_display({
format: "120x600",
googleAdPalette : "seaside"
});
</script>
CDATA
If you are using XHTML, it's recommend that (like any other script) you enclose the Ad script in a CDATA block. For compatibility with most browsers, use it like so:
<script type="text/javascript">
<!--//--><![CDATA[//><!--
revads_display({
format: "120x600",
googleAdPalette : "seaside"
});
//--><!]]>
</script>
Questions?
Just ask