
A Live Demo is implemented in this post page.
Step 1 : Navigating
Go to Blogger
Template
Backup your Template
Press Edit HTML
Step 2 : Adding the Code
Search for </head>
Copy the following code and paste it before </head>
<script type='text/javascript'>
var banner= new Array()
banner[0]='IMAGE-URL'
banner[1]='IMAGE-URL'
banner[2]='IMAGE-URL'
banner[3]='IMAGE-URL'
banner[4]='IMAGE-URL'
var random=Math.floor(5*Math.random());
document.write("<style>");
document.write("body {");
document.write(' background-image:url("' + banner[random] + '");');
document.write(' background-attachment:fixed;' );
document.write(' background-repeat:no-repeat;' );
document.write(' background-size:100%;' );
document.write(" }");
document.write("</style>");
</script>
Step 3 : Saving
Save your Template
Note :
Replace IMAGE-URL with the URL of your background image.
You may add more banners by addding banner[5]='IMAGE-URL' to the code, just don't forget to change the Math.floor value when you're adding and removing banners.
Is this plugin useful? Please do leave your comments below!
Rate This Article
Thanks for reading: Background Changer For Blogger, Stay tune to get latest Blogging Tips.