Hi! Hat jemand eine Idee wie ich auf meinem neuen Weblog die Google Ads so einzurichten, dass die sich je nach größe des Displays anpassen. Auf meinem 1280x1024 wird der Leaderboard_728x90 - Ad richtig angezeigt. Bei kleineren geht der Adblock rechts nehmen die Sidebar. Ich hab bisschen gegoogelt und diese Code gefunden:
php:
1:
2:
3:
4:
5:
6:
7:
<script type="text/javascript">function aufloesung(){
var breite=screen.width;
if (breite>=1100)
{ document.write('GROSSE ADS');}
else if (breite>=1000 && screen.width<1100)
{ document.write('KLEINE ADS'); }
}</script>
Das klappt aber nicht, weil der mit document.write nur 'GROSSE ADS' schreibt, anstatt das unter die Beiträge zu schreiben.
Kann mir jemand helfen?
Ich biete günstige xHTML/CSS Umsetzungen an: kevin.hausen [at] gmail.com
If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.
After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.
In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.
Sign up now and enjoy the advantages as a registered member.
(This website will be ad-free after a complete free sign up.)