Random image header in the bloggers we can actually change automatically every time the page on the Refresh or Reload. Objectives of the tutorial is still time to make it appear more stylish colors and have a distinctive color. In addition to creating a blog is more useful life also remove the tedium of visitors when visiting our blog, that blog does not monoton we need to add this header Random image.
Want to know how to make it?
Login to
Dashboard -> open
Template ->
Edit HTML
Find this code =
<b:skin><![CDATA[
Then copy the code below, paste the code under the code above, and then store and see the results.
</script>
<script type='text/javascript'>
var gambar= new Array()
gambar[0]="http://url-picture1"
gambar[1]="http://url-picture2"
var acak=Math.floor( 2 *Math.acak());
document.write("<style>");
document.write("#header {");
document.write(' background:url("' + gambar[acak] + '") no-repeat top left ;');
document.write(" }");
document.write("</style>");
</script>
Red = point where the URL address where you saved the image
Green = number of image, start from zero (0)
Blue = number of random images
source : http://www.o-om.com/2007/12/cara-buat-random-image-header-pada.html
Post a Comment