How to rotate local adverts on my smf forum

Firstly you can try Google DFP = Read AboutGoogle DFP here

Or you can try an external Ads script.

That will rotate the Ads for you

Or better still try the script below. 

First, place this where you want the banners to be seen:

http://js/ad-rotation.js
JavaScript must be enabled to view this element

Next, build a page called ad-rotation.js in a folder called “js”, and in it place:

Code: [Select]

gfx0="http://www.yoursite.com/path/to/image.gif";
lnk0="http://www.advertiserswebsite.com/";
alt0="Advertisers Website";

gfx1="http://www.yoursite.com/path/to/image.gif";
lnk1="http://www.advertiserswebsite.com/";
alt1="Advertisers Website";

gfx2="http://www.yoursite.com/path/to/image.gif";
lnk2="http://www.advertiserswebsite.com/";
alt2="Advertisers Website";

gfx3="http://www.yoursite.com/path/to/image.gif";
lnk3="http://www.advertiserswebsite.com/";
alt3="Advertisers Website";

gfx4="http://www.yoursite.com/path/to/image.gif";
lnk4="http://www.advertiserswebsite.com/";
alt4="Advertisers Website";

gfx5="http://www.yoursite.com/path/to/image.gif";
lnk5="http://www.advertiserswebsite.com/";
alt5="Advertisers Website";

len=6; // Number of banners

today=new Date();
today=Math.round(today.getTime()/10);
rnd=today%len;

// Edit the below for specific banner size
document.writeln('
');

Subscribe To My YouTube Channel For Latest Football Gameplay Videos... Click HERE
Join GuruBasics Telegram Channel For your latest free browsing cheat, tech news, phone reviews, tutorials and many more by clicking HERE
Check out the REASONS why you should always comment on posts HERE
Download Our Android App HERE

Get Our Hottest Updates via SMS. Kindly SMS FOLLOW GURUBASICS to 40404. On Any Network. It Is Totally FREE. Download Our Android App From HERE
To Submit Your Guest Post Or Sponsored Article, Enter HERE. Click HERE To Our Join Telegram Group
wizytechs blog-bg
Subscribe To My YouTube Channel For Latest Football Gameplay Videos... Click HERE
Join GuruBasics Telegram Channel For your latest free browsing cheat, tech news, phone reviews, tutorials and many more by clicking HERE
Download Our Android App HERE
Updated: November 19, 2016 — 7:37 pm

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

GuruBasics © 2018