Created
April 9, 2016 06:37
-
-
Save finalwebsites/a4ad708e27061fd40151a315bab0f791 to your computer and use it in GitHub Desktop.
Show Random Advertisements
This file contains 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
<?php | |
$random[] = '<a href="http://www.all4yourwebsite.com/" title="Website templates, dreamweaver templates, flash intro templates"><img src="images/banners/all4webBanner468_60.jpg" alt="all4yourWebsite.com - web design templates" /></a>'; | |
$random[] = '<a href="http://www.designers-website.eu/" title="Premium Web Design Templates"><img src="/images/banners/designers_website_468_60.jpg" alt="Designers Website" /></a>'; | |
// ad more banners if you like | |
$random[] = '<script type="text/javascript"><!-- | |
google_ad_client = "pub-xxxxxxxxxxx"; | |
google_ad_width = 468; | |
google_ad_height = 60; | |
google_ad_format = "468x60_as"; | |
google_ad_type = "text_image"; | |
google_page_url = document.location; | |
//--></script> | |
<script type="text/javascript" | |
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> | |
</script>'; | |
$i = rand(0, count($random)-1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment