<b>REGISTER</b>

GFX-Sector - HTML, CSS


 
GFX-Sector » Coding Area » Webentwicklung » HTML, CSS » Bildschirmgröße ermitteln und Google Ads anpassen » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites

HTML, CSS

Einfache Scriptsprachen und deren Layout mit HTML und CSS
Post New Thread Post Reply

Bildschirmgröße ermitteln und Google Ads anpassen

     Deutsche Version  English version
Author
Post « Previous Thread | Next Thread »

KevinH KevinH is a male
Buntstiftmaler


Avatar von KevinH

Registration Date: 27.01.2007
Posts: 82
Location: Kehlbach
Program: Photoshop 7

Spacer
Bildschirmgröße ermitteln und Google Ads anpassen

Bildschirmgröße ermitteln und Google Ads anpassen

      

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
Bildschirmgröße ermitteln und Google Ads anpassen 07.03.2007 14:33 KevinH is offline Homepage of KevinH Search for Posts by KevinH

DoubLe DoubLe is a male
Zauberstabbenutzer


Avatar von DoubLe

Registration Date: 04.03.2007
Posts: 23
Location: NRW
Program: Photoshop 7 | GIMP

Spacer
      

also ich würds ja mit php machen Wink



DoubLe - DoubLe.Graphix
--------
© by DoubLe | All rights reserved.

Bildschirmgröße ermitteln und Google Ads anpassen 10.03.2007 16:41 DoubLe is offline Homepage of DoubLe Search for Posts by DoubLe
 
Spacer
   
GFX-Sector
unregistered


 hat kein Avatar


Spacer

Have you enjoyed this topic?


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.)

New Post 10.03.2007 16:41  
Tree Structure | Board Structure
Post New Thread Post Reply
GFX-Sector » Coding Area » Webentwicklung » HTML, CSS » Bildschirmgröße ermitteln und Google Ads anpassen

Similar topics to Bildschirmgröße ermitteln und Google Ads anpassen
Thread
logo roundup - t03i (Forum: Logos)
Announcement: DotM Regeln und Informationen (Forum: DOTM-Ankündigungen)
Wer ist mein Freund.de? (Forum: Werbung)
GUNDAM 8.1 [Ready] (Forum: Signaturen/Avatare)
Playercard und Symbol (Forum: Unentgeltliche Grafikanfragen)