randomColor

Description

This script requires jQuery

The script adds

  • an animated random color to .randomcolor classes
  • an animated random background color to .randombgcolor classes

This script is released under GPL Licence version 3

Demo

.randomcolor
<h1 class="randomcolor">a funny heading</h1>

a funny heading

 
.randombgcolor
<div class="randombgcolor" style="width:300px;border:1px solid black;height:300px;padding:5px">demo</div>

demo

Installation

Download the script

Zip - 849 octets
randomcolor.js
version 1.2 - april 2009

Add these lines in the your HTML header

<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="randomcolor.js"></script>