Tuesday, September 02, 2008

Random header image is blogger

How to make a random header image in blogspot? This is the question for many bloggers out there. And i wish i could help you guys with this tutorial.

This tutorial will help you how to put a random images for blogger user.

  1. Find code <b:skin><![CDATA[
  2. Copy this script before <b:skin><![CDATA[

    </script>
    <script type='text/javascript'>
    var gambar= new Array()
    gambar[0]="http://URLADDRESS_Image1"
    gambar[1]="http://URLADDRESS_Image2"
    gambar[0]="http://URLADDRESS_Image3"
    gambar[1]="http://URLADDRESS_Image4"
    var random=Math.floor( 2 *Math.random())
    document.write("<style>");
    document.write("#header {");
    document.write(' background:url("' + gambar[random] + '") no-repeat top left ;');
    document.write(" }");
    document.write("</style>");
    </script>



Done

1. Add more images by add more image URL address..

2. To add the code you need to parsing the script. This page will help you.

7 comments:

  1. how to make logo on header blogger??see my blog...blackantbit.blogspot.com

    ReplyDelete
  2. How can I rotate my background image?
    This is how the code looks like that holds my background image:
    body {
    background:$bgcolor;
    margin:0;
    color:$textcolor;
    font:x-small Georgia Serif;
    font-size/* */:/**/small;
    font-size: /**/small;
    text-align: center;
    background-color:#000000;
    background-image: url(http://i542.photobucket.com/albums/gg419/srk8887/blogspot%20theme/bg_iRadar_001.jpg);
    background-attachment: fixed;
    background-position: top left;
    background-repeat: no-repeat;
    border-color:#ffffff;
    border-width:0px ;
    border-style: solid;
    }

    ReplyDelete
  3. Isn't working for my blog. Is there something with new blogger minima template that has to be done to disable the original header?

    ReplyDelete
  4. Hmm... does this code still work in blogger because I am having trouble finding any 'random' image codes that work... any suggestions?

    ReplyDelete
  5. what about random blog background color ( or image)? anyone can help? could we use these code too? im not sure i have that skill. so please help

    ReplyDelete
  6. Truly, this article is really one of the very best in the history of articles. I am a antique ’Article’ collector and I sometimes read some new articles if I find them interesting. And I found this one pretty fascinating and it should go into my collection. Very good work! The Random Blogger

    ReplyDelete

While comments maybe u would like to download another Blogger Templates Or Tricks ?? :)

Handphone Protector

handphone is the stuff that is always attached in your pocket. This m obile is a common item , but that does not mean it is not w...