>

January 29, 2007

Random Rotating Banner Hack for New Blogger

While searching for rotating banner, I came across Random Rotating Banner Hack by Gabriel Lau. It's very interesting hack, as it rotates the banner for every refresh of page. Just follow quick method to enable this crack.

  • Find
  • Now add following code below it.

<script type="text/javascript">

var banner= new Array()

banner[0]="http://doom3024.googlepages.com/kubrick-circad88-blue.jpg"
banner[1]="http://doom3024.googlepages.com/kubrick_abstract14b.jpg"
banner[2]="http://doom3024.googlepages.com/kubrick_amberbutton.jpg"
banner[3]="http://doom3024.googlepages.com/kubrick_blueflora.jpg"
banner[4]="http://doom3024.googlepages.com/kubrick_water.jpg"
var random=Math.round(4*Math.random());

document.write("<style>");
document.write("#header {");
document.write(' background:url("' + banner[random] + '") no-repeat left TOP;');
document.write(" }");
document.write("</style>");

</script>


Technorati Tags:

comments:

Anonymous said...
1:26 AM GMT+5:30
 

This hack doesn't work properly for me. =( The header I have requires that I put a blog description (it won't allow if I put nothing in as the blog title).

So, when I use this code, it works, but the blog title is smack in the center. Is there anyway to fix this? =(

Thanks for sharing!

Related Post