esempio 2, Flash rollOver style:
codice:
onload = function(){
	var	div = document.createElement("div");
	div.id = "test";
	div.appendChild(document.createTextNode("Hello Gradient !"));
	document.body.appendChild(div);
	div.colors = ["#000000", "#ABABAB"];
	div.bgcolors = ["#FFFFFF", "#000000"];
	div.newGradient = function(gradients){
		if(this.gradients) {
			clearInterval(this.gradients[0]);
			clearInterval(this.gradients[1]);
		};
		this.gradients = [gradient.apply(null, gradients[0]), gradient.apply(null, gradients[1])];
	};
	div.onmouseover = function(){
		this.newGradient([
			[this.id, this.colors[0], this.colors[1]],
			[this.id, this.bgcolors[0], this.bgcolors[1], 10, "backgroundColor"]
		])
	};
	div.onmouseout = function(){
		this.newGradient([
			[this.id, this.colors[1], this.colors[0]],
			[this.id, this.bgcolors[1], this.bgcolors[0], 10, "backgroundColor"]
		])
	};
};
questo direi che è più interessante