Blogger is a free blog publishing service provided by Google.
Blogger allows for custom page templates and layout designs that can be
edited and rearranged in a variety of ways. The top section of a Blogger
page, known as the header, can contain a single image with text. By
utilizing a JavaScript code within a Blogger gadget, it is possible to
create a header banner that cycles randomly through a bank of images.
Follow below instructions to customize the rotating Header banner to your blog.
1. Click the "Design" tab within the Blogger editor dashboard.
2. Click the "Page Elements" tab and click the "Add a Gadget" link at the top of the Blogger layout editor.
3. Click the blue cross icon next to the HTML/JavaScript option to open the Gadget Configuration window.
4. Insert the following code into the Content section of the Gadget Configuration window:
<script language="JavaScript">
images = new Array(3);
images[0] = "<img src='IMAGE LINK'>";
images[1] = "<img src='IMAGE LINK'>";
images[2] = "<img src='IMAGE LINK'>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
5. Replace each instance of "IMAGE LINK" with the Web address for the images that you want to display. A random image will be selected from the array each time the page is loaded.
6. Click the "Save" button at the bottom of the Gadget Configuration window to save the rotating banner. Click the "Save" button at the top of the Blogger layout editor to save the blog design.
Follow below instructions to customize the rotating Header banner to your blog.
1. Click the "Design" tab within the Blogger editor dashboard.
2. Click the "Page Elements" tab and click the "Add a Gadget" link at the top of the Blogger layout editor.
3. Click the blue cross icon next to the HTML/JavaScript option to open the Gadget Configuration window.
4. Insert the following code into the Content section of the Gadget Configuration window:
<script language="JavaScript">
images = new Array(3);
images[0] = "<img src='IMAGE LINK'>";
images[1] = "<img src='IMAGE LINK'>";
images[2] = "<img src='IMAGE LINK'>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
</script>
5. Replace each instance of "IMAGE LINK" with the Web address for the images that you want to display. A random image will be selected from the array each time the page is loaded.
6. Click the "Save" button at the bottom of the Gadget Configuration window to save the rotating banner. Click the "Save" button at the top of the Blogger layout editor to save the blog design.
Thanks
ReplyDelete