Skyscraper Werbung Rechts vom Content
hi zusammen
ich habe auch lange nach einer Lösung gesucht bis ich folgende gefunden habe:
Ich habe eine PHP-Datei erstellt(werbung-r.php), die die Werbungscodes beinhaltet und im selben Theme Ordner gespeichert.
z.B.
ZitatAlles anzeigen
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
das ist google Adsens Code
[COLOR=red]<script type="text/javascript"><!--[/COLOR]
[COLOR=red]google_ad_client = "hier kommt dein google AdSense code";[/COLOR]
[COLOR=red]/* Leotauro */[/COLOR]
[COLOR=red]google_ad_slot = "3476465242";[/COLOR]
[COLOR=red]google_ad_width = 120;[/COLOR]
[COLOR=red]google_ad_height = 600;[/COLOR]
[COLOR=red]//-->[/COLOR]
[COLOR=red]</script>[/COLOR]
[COLOR=red]<script type="text/javascript"[/COLOR]
[COLOR=red]src="[/COLOR][COLOR=red]http://pagead2.googlesyndication.com/pagead/show_ads.js[/COLOR][COLOR=red]">[/COLOR]
[COLOR=red]</script>[/COLOR]
dann hier vieleicht andere Werbeanbieter (z.B. wie aflinet)
</body>
</html>
JETZT im header.php datei vom Theme am ande folgende code eingegeben:
Zitat
<div style="position: absolute; width: 157px; height: 354px; z-index: 1; left: 900px; top: 220px" id="layer1">
<?php include( TEMPLATEPATH . '/[COLOR=red]werbung-r.php[/COLOR]' ); ?></div>
hier wird die Werbung Rechts neben dem Content angezeigt.
du kanst überall platzieren wo du willst
Werbung rechts vom content
werbung link vom content
werbung unten unter dem content
werbung oben über dem content
egal wo. Du kannst alles damit machen
siehe beispiel unter http://www.leotauro.de
ciao und viel spass beim probieren :razz: