How to Create Random Background at Blogger

Gadgets For Blogger - After so long at home and not doing any one activity, that is where I feel the feelings that bland and boring. Alhamdulillah on this sunny morning I can share about the tutorial again this time. At this unexpected I would mempoeting how to make an appearance on the blog background to be changed at random when the browser refreshes.


The purpose of the display background makes blogs like this do not is not is to beautify the appearance of the blog to be less boring. The picture-too easily can change in accordance with the wishes and tastes of each buddy. Usage has JavaScript in my opinion it is easy to understand.

Simply pair the script how magical it to your blog each.
1. First of all go to blogger.com
2. Click the Template and then click Edit HTML
3. Put the following code right above the code <body>

<script type='text/javascript'> var background= new Array() background[0]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd0FA64RjM1PfnvAAz9hc7Vd-W6QaeXJ67IontDX7V5B9y2zj9Nd71Taaa6Sk9NQCYiIotrvX8kjKYiMp-dgSHfi0blp3AY85oMP81LPcM3ShsXd6f4wg3iZC9ZaqDJruLptpkTrZjLg4/s1600/Lands1Farixsan.jpg" background[1]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghP41q2dP0w2r5tAOeFtfAAGl5y6oyU4mrjltkIUIRj3Yl32bYyO0-Z2oRj_7TbzB9I3fuCRHJh0SWLrBUXdeDnRmmkjVu4OziEMrzIdHDap-JA_5PxGnJ4r0HNiR6pLBZTlPf-P7HDu0/s1600/Lands2Farixsan.jpg" background[2]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxFQKS_xXDc-MbxYA9Yh0Bm-9Mvgeo44D2CvscAY8X0sxVPk9TRokoGnwX6d2RaBJE4MNZcyvXWYpx8OzsCrkt0tBjwxH_z4JpKiLP2dMJB79hcAD8dyYIQUn47PRss46OhUiQ6dE0qbM/s1600/Lands3Farixsan.jpg" background[3]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNjDaxv90pSOgEtjnXqSP_4T9zQW28f4cRgsqiuIXlKBBnaWVk0YqLlZ-BmwBnHlEGir92mlDjfSKxypT5MEnirrQDFlrO97VONg_ECkpWMuBZZUhsedNEe0uT5_sM87N7b9iq5H1daU4/s1600/Lands4Farixsan.jpg" background[4]="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbzoPEMzkhzmMXFwj18V_MgkXWAcBhuhT2gngcjvZzaG41xiJ32RENH-H2eLVDgi5mlzal82vRWjodUh7M90-LFUbxWkQstv88WqBfB1Wy26DhpYS0Lmz-JLeFKPKt2S_J123IL1Xmf78/s1600/Lands5Farixsan.jpg" var random=Math.floor(4*Math.random()); document.write("<style>body {"); document.write(' background:url("' + background[random] + '") repeat top center fixed #fff;'); document.write(" }</style>"); </script>


Replace the red code with a background taste buddy. Buddy can add pictures more than 5 images by sorting the numbers, eg [5], [6], [7], etc. .. and replace the 4 * Math.random a maximal rate of a collection of images of the drawing.
Furthermore, Save!
Easy not to try to How to Create Random Background at Blogger? Hopefully useful ya friend:)
Source: farixantips - Gadgets For Blogger

0 comments:

Post a Comment