Hosted by GOOGLE
Don't forget Subscribe us

468x60

Tuesday, September 02, 2008

7
Random header image is blogger

Help us to share

If you like this

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:

ARGIA NAUFAL said...

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

Anonymous said...

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;
}

Littlekariblue said...

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

Lauren said...

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

Hanjaya the Hermit said...

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

sop said...

thanks.. working great

BrightEarn.com said...

Get more Blogger Tricks and tips and widgets...
from blogspassion.com

Regards
Vicky
www.Blogspassion.com

Post a Comment

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

Popular Posts