This tutorial is related to the usual advertising box widget buddy pairs with the HTML code. However, in this tutorial I'll show you how to install the ad box with another method that is the JavaScript code that is mild to the blog.

The working code of this widget similar to Google Adsense script, that banner ads will appear automatically turns to the other banner after every reload or refresh the page. In this code I provide 3 placement of a banner that will be added if you needed.
The following tutorial How to Install Widget Ad Box with Refresh Function
1. Log in to Blogger> Layout> Create a new widget> Then add the following code to the new widget<script type="text/javascript">
var sisdgzn_id = 3;
var sisdgzn_now = new Date()
var sec = sisdgzn_now.getSeconds()
var sisdgzn_place = sec % sisdgzn_id;
sisdgzn_place += 1;
if (sisdgzn_place == 1) {
url = "ADVERTISE SITE LINK";
alt = "DESCRIPTION ADVERTISING";
title = "Title Advertisements";
banner = "Banner Link";
width = "300";
height = "250";
}
if (sisdgzn_place == 2) {
url = "ADVERTISE SITE LINK";
alt = "DESCRIPTION ADVERTISING";
title = "Title Advertisements";
banner = "Banner Link";
width = "300";
height = "250";
}
if (sisdgzn_place == 3) {
url = "ADVERTISE SITE LINK";
alt = "DESCRIPTION ADVERTISING";
title = "Title Advertisements";
banner = "Banner Link";
width = "300";
height = "250";
}
document.write('<a href=\"' + url + '\" target=\"_blank\" rel=\"nofollow\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('title=\"' + title + '\" alt=\"' + alt + '\"></a>');
</script>
Please fill in these information with right link and banner just edit it. To add a banner please add the following code in the code above. Suppose I'll add the banner code into four
Change the code var sisdgzn_id = 3; with var sisdgzn_id = 4;
var sisdgzn_id = 4;
if (sisdgzn_place == 4) {
url = "ADVERTISE SITE LINK";
alt = "DESCRIPTION ADVERTISING";
title = "Title Advertisements";
banner = "Banner Link";
width = "300";
height = "250";
}
To change the size of the banner, please specify width = "300"; and height = "250"; in the code above as needed.
2. Save the widget and see the results.
Easy enough right? Thus tutorial on How to Install Widget Ad Box with Refresh Function on the blog. Hopefully useful and successful greeting.
0 Comments