Ad Mates

I show you — you show me

My AdsMy SiteStatsHelpNews Create a free Account

Adding an Ad to my site

Use this snippet to show Ads on your site:

<script type="text/javascript" charset="utf-8" src="http://ads.traeumt.net/serve/ad/"></script>
		

The Ad Text

You can add up to 75 characters of text to your ad, including links. Your links have to be formatted as in this example, or they won't pass the security test.

<a href="http://my-site.com" title="My Site">Link Text</a>
		
That is, an href and a title attribute are allowed and required. If you need more, do let me know. The links themselves are not counted for the 75 character limit, only the Link Text is.

Styling the Ad

The snippet above generates the HTML code that is needed to show the ad and the ad's text. It looks like this:

<a href="http://ads.traeumt.net/serve/redirect/10" id="caLink">
<img id="caImage" src="http://ads.traeumt.net/Ads/1113_a2d0.jpg" />
</a>
<div class="caText">
<a href="http://jan.prima.de/" title="My App">My App</a> is the best. Click on the link and see for yourself;
</div>
		

There are a few CSS properties that you have access to:

Here's a sample CSS from the preview-function:

#caImage {
	border:0px;
}

#page {
	width:480px;
	margin:2ex auto 0 auto;
}

#caAd {
	margin-top:0px;
	border:1px solid #454545;
	width:120px;
	overflow:hidden;
}

.caText {
	padding:.4em;
}			
		

Please note, that I added an additional div around the ad with the ID of #caAd. It ensures that the text is limited to the 120px width of the image. Words that exceed this length get cut off. This ensures that the text doesn't break the layouts of the sites that show the ads. Make sure to test your text.

More questions or feedback or rants?

There's a Q&A page, but please don't hesitate to contact Jan (jan@php.net). Have fun!

Sponsoring

If you'd like to see a specific feature and don't want to wait for me to eventually do it, you can encourage me with donations and speed things up. Also, the original deal is still on :-)