so I’ve been trying to set a gradient with javascript so that it has a mouse over effect, but I’ve had no luck and cannot get it to work, here is my javascript.
function mouseOVER(x)
{
x.backgroundImage="-webkit-gradient(linear, left bottom, left top, color-stop(0, #F7F7F7), color-stop(1, #FFFFFF));";
}
function mouseOFF(x)
{
x.backgroundImage="-webkit-gradient(linear, left bottom, left top, color-stop(0, #F7F7F7), color-stop(1, #BABABA));";
}
I’ve been using jsFiddle to test things, so here is mine for this.
Try somethink like this, with CSS only
CSS
DEMO http://jsfiddle.net/enve/ZauwA/11/
To change your text on mouseover use this code
HTML
FULL DEMO http://jsfiddle.net/enve/ZauwA/19/