How to Install a Random Background Blogger

How to Install a Random Background Blogger

How to Install a Random Background Blogger
How to Install a Random Background Blogger

How to Install a Random Background Blogger

Have you ever seen a randomly changing background when you refresh a page on a site? Alternating backgrounds usually use a certain script. But it must be known if we use this random background, it will reduce the speed of the blog. This is because every time we refresh the page we will load a different image, so use it wisely.

But for those of you who want to add a Random Background on your Blog, it never hurts to try. Immediately, let's follow the Tutorial from ThugsofBD on How to Install Random Background Blogger below.

How to Install a Random Background Blogger

Go to Blogger > Themes > Click the Edit HTML button and add the following jQuery code above the code  </body>

<script type='text/javascript'>
var Background=new Array;Background[0]="#f5f5f5 url('https://4.bp.blogspot.com/-ULjjdtQ8lpI/W5u2wMHOKCI/AAAAAAAAOM4/Q8Y1XllxybEw9nSb91uYUvEKz1Yyf9OsQCLcBGAs/s1600/Randomimage%2B%25281%2529.jpeg') no-repeat top center fixed",Background[1]="#f5f5f5 url('https://2.bp.blogspot.com/-u7c8oWxZjOM/W5u2wIOobeI/AAAAAAAAOM0/ggjaHTpHd9M-At-J8r1hO30dTglYToL4gCLcBGAs/s1600/Randomimage%2B%25281%2529.jpg') no-repeat top center fixed",Background[2]="#f5f5f5 url('https://2.bp.blogspot.com/-AQ0e1uHKuhc/W5u2vLoUnvI/AAAAAAAAOMw/z9BDNHzXmRkOcsp1QTyB8QzR4AWmOVkmACLcBGAs/s1600/Randomimage%2B%25282%2529.jpg') no-repeat top center fixed",Background[3]="#f5f5f5 url('https://1.bp.blogspot.com/-zAFrsNqWNb8/W5u2wbRIngI/AAAAAAAAOM8/tDyXG4X1uY473QldY1wO5urr90CNbUhygCLcBGAs/s1600/Randomimage%2B%25283%2529.jpg') no-repeat top center fixed";var random=Math.floor(4*Math.random());document.write("<style>"),document.write("body {"),document.write("background: "+Background[random]+";"),document.write("background-size:100%;"),document.write(" }"),document.write("</style>");

Change the code marked with your image link.

After that click Save theme and see the results on your blog.

Similarly, tips on How to Install a Random Background Blogger, hopefully useful.

Newer post Older post