.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Highlight an Image on Mouseover Using Java Script

Posted By:Prasanti Prusty       Posted Date: January 29, 2010    Points: 10    Category: Javascript    URL: http://www.dotnetspark.com  

Highlight an Image on Mouseover Using Java Script. To change the opacity of an image, In IE4+, we can adjust the opacity of an image using the STYLE attribute:
 

To change the opacity of an image

In IE4+, we can adjust the opacity of an image using the STYLE attribute:



Here the accepted range of values are 0 to 100, where 0 would make the image disappear.

In NS6+, the code needed is a little bit different:



Here the accepted range of values are 0 to 1, where 0 would make the image disappear.

To make opacity specification work in both IE4+ and NS6+ , we need to combine the two HTML above.
Just define one STYLE attribute and put the two definitions inside it, separating the two with a semicolon:



Codes :




    Highlight an Image on Mouseover Using Java Script
    


    



     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend