Log in

View Full Version : Restricting Filter To Certain Images



Black Roses Burn Brightly
05-14-2005, 11:16 PM
I have a code for making an image's colors invert on mouseover:
<STYLE TYPE="text/css">
IMG{
filter: No Filter;
}
A:LINK IMG{ filter: No Filter }
A:HOVER IMG{ filter: Invert }
</STYLE>

I would like to make that where it only works with the images that I choose for it to...Is this possible? Thank You.

jscheuer1
05-15-2005, 03:56 PM
<STYLE TYPE="text/css">
IMG{
filter: No Filter;
}
A:LINK IMG{ filter: No Filter }
A:HOVER IMG.chango{ filter: Invert }
</STYLE>Then only the second image below will change.
<a href="#"><img src="photo1.jpg"></a>
<a href="#"><img class="chango" src="photo2.jpg"></a>You can use almost any word for chango. All you really need in the style section is:


<STYLE TYPE="text/css">
A:HOVER IMG.chango{ filter: Invert }
</STYLE>