website promotion banner
eturnkeys
Your Ad Here
HTML and CSS  Home HTML and CSS Articles Image Opacity Control By CSS
rss

Image Opacity Control By CSS

Author: Arnab_Ghosh More by this author


This is only viewable in Internet Explorer. This script will make an image grey until it has a mouse over it. Once you mouseoff, it changes back to grey. Copy and paste this code into your <img>command.

style="filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)" onmouseover="this.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)'" onmouseout="this.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)'"

To see the effect move your mouse to the following image.

photo1



Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Image Opacity Control By CSS"