File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Disabling an image Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Disabling an image" Watch "Disabling an image" New topic
Author

Disabling an image

Pooja Dogra
Greenhorn

Joined: Apr 16, 2003
Posts: 2
Want to know how to disable an image.The image is of the form <img src=...>
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Are you talking about being copied? Well you can not keep that from happening. If that is not the case, what are you asking?
Pooja Dogra
Greenhorn

Joined: Apr 16, 2003
Posts: 2
Actually we are creating Website in that we have different icons(images) performing different functions and I want to disable a particular Icon out of these list of icons.
All these icons are of the type<img=...>.So I want to know if we have Javascript available to disable the icons in the html form as we have to disable a particular text item.
Regards,
Pooja.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
you might be able to put disabled in the tag, but I doubt that will work. You moist likely are going to have to code the information into your program. I would personally jus set variables to true or false
var AllowPush1=true;
var AllowPush2=false;
if(AllowPush1){alert('hm');}
if(AllowPush2){alert('ah');}
 
 
subject: Disabling an image
 
Threads others viewed
converting png to tiff and character recognition with tesseract
Easy one
Getting rid of Java Icon on the upper left hand corner
Loading image file
Unsupported Color Conversion Request
IntelliJ Java IDE