wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Disabling image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling image" Watch "Disabling image" New topic
Author

Disabling image

Gavi Raaghav
Ranch Hand

Joined: Apr 28, 2005
Posts: 82
I have an image with a hyperlink on it.Is it possible to disable the image? If yes then how?
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
By disable the image, do you mean you want to not show the image, or you want the hyperlink to do nothing? Or something else?

You can hide the image by adding to the image tag.

You can prevent the hyperlink from taking any action by adding to the anchor tag.

Hope that helps..
Gavi Raaghav
Ranch Hand

Joined: Apr 28, 2005
Posts: 82
Thanks for the response.Basically i want to disable the image just like you disable a button.Basically the user can see the image but when he clicks on it nothing happens.
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
Are you doing this dynamically? If not, the second suggestion I gave you will give you all the attributes of a linked image, but nothing should happen when the user clicks it.

If you do need to disable the link dynamically, you could try this:


I would definitely check the syntax on that, but hopefully you get the idea?
[ August 05, 2005: Message edited by: Garann Rose Means ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disabling image
 
Similar Threads
Loading image file
Getting rid of Java Icon on the upper left hand corner
Easy one
Unsupported Color Conversion Request
converting png to tiff and character recognition with tesseract