Created
April 23, 2012 23:37
-
-
Save underdown/2474608 to your computer and use it in GitHub Desktop.
responsive ads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"><!-- | |
google_ad_client = "ca-pub-3658299045266116"; | |
/* top */ | |
if ($(window).width()<728 ){ | |
google_ad_slot = "4414183254"; | |
google_ad_width = 320; | |
google_ad_height = 50; | |
}else{ | |
google_ad_slot = "1020377061"; | |
google_ad_width = 728; | |
google_ad_height = 90; | |
} | |
//--> | |
</script> | |
<script type="text/javascript" | |
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For me this doesn't actually work, mine always shows the bigger one :(, doesn't seem to dynamically resize when you resize the window.