Clickable Random Banner Rotator Script For Blogger?

It is very important to have new things to your blog. Whenever a visitor returns, he or she should see your blog is frequently updating. There are a lot of ways to update your blog regularly. You can update your blog content. You can update your blog images or services you have offered. You can also refresh the look of your blog and attract more visitors in this way. The primary goal is to show your visitors that your blog is updating continuously.

Today I am going to show a simple update of your blog. In this tutorial, I will demonstrate how you can add a random banner rotator in your blog. You are thinking, what kind of update is this? What will be the benefit with this update? Ok, let me tell you, my friend, that this banner rotator could be very useful for your blog and your visitors. The question is how?

Random Banner Rotator Script:

When a visitor comes to your blog, this random banner rotator will be activated. You can add as many banners as you want with this Random Banner Rotator Script in your blogger blog. This banner rotator will change a banner with every page load done by your readers.

You can also put every banner source URL. So if you place this banner rotator in your blog sidebar and put 5 banners which will load randomly then think that, you are promoting 5 banners in the same place of your blog. You can promote your five Affiliate links or ads through this banner rotator. If you need to promote your own services or your own blog’s pages or articles, you can easily do this.

This will give you a chance to have more clicks from your readers. In this way, this process could decrease your website bounce rate too. According to me, this is very helpful and important update for your blog. Now I am going to show you the procedure how you will be able to add this lovely Random Banner Rotator Script in your Blogger blog.

Step 1: First of all you have to create your banners. You must create at least two different banners for rotating. You can choose images with any dimension because you can change your banners height and width in the source code.

I will show it later. If you have done selecting your banner images, now it is time to host them on the web to get banner image source URL. I use PICASA WEB ALBUM for hosting my images. I will recommend this for you too.

After hosting images, collect the image source URLs. In my case, I have hosted my banner images in PICASA. I have collected the image source URLs like this:

Banner Rotator Script For Blogger-1

Step 2: Now login to your blogger account and go to the Blogger “Dashboard”. From the left side, Click on “Layout” section.

Banner Rotator Script For Blogger-2

Click on “Add A Gadget” where you want to show your banners (I am showing it in my blog’s sidebar). Select “HTML/JavaScript”. Now copy the script from below and Put it in the HTML/JavaScript popup. Click on the save button.

Code :
<!-- Banner Rotator Powered By  --> <script type='text/javascript'> var quotes=new Array()  quotes[0]='<a href="Banner Source URL"><img alt="Banner Image Alter Tag" height="auto" width="100%" src=""/></a>'  quotes[1]='<a href="Banner Source URL"><img alt="Banner Image Alter Tag" height="auto" width="100%" src=""/></a>'  quotes[2]='<a href="Banner Source URL"><img alt="Banner Image Alter Tag" height="auto" width="100%" src=""/></a>'  var whichquote=Math.floor(Math.random()*(quotes.length));  document.write(quotes[whichquote]); </script>

From the above code, replace all the "Yellow" highlighted parts with your own. You can set your banner's height and width by replacing the "Red" highlighted values. I have given here three banners. If you need to increase the number of banners, you can do it easily by adding more "quotes[number]" inside into the script like this:

Code :
quotes[3]='<a href="#"><img alt="Alter Text" height="auto" width="100%" src="Banner Image Source"/></a>' quotes[4]='<a href="#"><img alt="Alter Text" height="auto" width="100%" src="Banner Image Source"/></a>'

This script supports unlimited rotating banner so you can add as much as banner you want. Also, you can adjust height and width of your banners from the script. This is a beautiful and simple script for adding rotating banner in your blogger blog. Hope you have already added the script to your blog, and it is working fine. If not, then please let me know through the comment. I will get back to you very soon.

I love to share my knowledge and experience. I am a part time blogger and a student of Computer Science & Engineering. I am a regular web developer & SEO analyst at Upwork. You can follow me on...


I have got some other script but did not implement in my blog because those script contains coding overflow I think. This seems very light weight. I want to use this banner rotator in my sidebar. But the size of my sidebar is 320px. Will it suit there?

This banner rotator will suit with your sidebar because the width is defined 100%. In future if you change your sidebar width then this widget will work fine too. So don't worry.

We accept <a> (for making links), <b> (for bold), <strong>, <em> and <i> Tags. Spam comments will be deleted.