Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How To Disable And Enable HtmlImage in Asp.net
Posted

What do you mean by disabling an HTML image?

First of all, images cannot be disabled. Even though you disable the image it will look the same in browser.

You can create a second image that and use javascript to change the image when the image is disabled.

You can also place an absolute positioned semi - transparent div element over the image to make it look disabled :

http://codingforums.com/showthread.php?t=56782[^]

:thumbsup:
 
Share this answer
 
Comments
Raghava jogu 21-Sep-10 5:13am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
Raghava jogu 21-Sep-10 5:20am    
I am using this image to open Another Webpage ,i Want to disable image When User doesnot have Access to Open WebPage.
This is My Source for Image

if Image cannot disable, can u tell me how to use javascript for Disable.
 
Share this answer
 
Comments
Raghava jogu 21-Sep-10 5:14am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900