tags:

views:

827

answers:

2

When I hover a text with animation definitely I will use jquery. Is there a code that will change the color, or size?

A: 

You want to animate the colour of some text? Try the first result on Google. As for font-size, have a look at the animate example in the jQuery docs.

Will Vousden
+4  A: 

Place the following in your jQuery mouseover event handler:

$(this).css('color', 'red');

To set both color and size at the same time:

$(this).css({ 'color': 'red', 'font-size': '150%' });

You can set any CSS attribute using the .css() jQuery function.

Annabelle