disable image 
Author Message
 disable image
i have buttons in my web site that can be disabled in some cases.
i wish that if i enter an image into the button and i disable the button,
the image will look like a disabled image(just like in a regular
application)
is there a way i can do it without replacing the image source to an image
that looks like disabled image?



Sun, 20 Jul 2003 16:20:01 GMT  
 disable image
you may want to look at this, but as far as disabling images, do you mean
you want that
grayed look to the image ????

<input disabled type="button" value="push me">

this looks good for normal buttons


Quote:
> i have buttons in my web site that can be disabled in some cases.
> i wish that if i enter an image into the button and i disable the button,
> the image will look like a disabled image(just like in a regular
> application)
> is there a way i can do it without replacing the image source to an image
> that looks like disabled image?



Sun, 20 Jul 2003 20:47:12 GMT  
 disable image

Quote:

>i have buttons in my web site that can be disabled in some cases.
>i wish that if i enter an image into the button and i disable the button,
>the image will look like a disabled image(just like in a regular
>application)
>is there a way i can do it without replacing the image source to an image
>that looks like disabled image?

    Yes, try emboss filter or smth lookalike ...
    Sadly it wont work on Netscapes as you already could predict ...

--
MM anno MM(I) aus (B)Estland
http://my.tele2.ee/cadorsoft/links2PROJECT6.htm
(115K dhtml related links, well nothing special...)



Mon, 21 Jul 2003 00:56:59 GMT  
 disable image

Quote:

> i have buttons in my web site that can be disabled in some cases.
> i wish that if i enter an image into the button and i disable the
> button, the image will look like a disabled image(just like in a
> regular application)
> is there a way i can do it without replacing the image source to
> an image that looks like disabled image?

Maybe, using transparency and changing a background color. But that seems
like more work than just making a "disabled looking" version of the image
and toggling the source.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.



Mon, 21 Jul 2003 04:10:48 GMT  
 disable image

Quote:
> i have buttons in my web site that can be disabled in some cases.
> i wish that if i enter an image into the button and i disable the
button,
> the image will look like a disabled image(just like in a regular
> application)
> is there a way i can do it without replacing the image source to an
image
> that looks like disabled image?

Use the gray filter.

Normal image:

<img src="whatever.gif">

Disabled image:

<img src="whatever.gif" style="filter:gray()">

http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/fil
ter.asp

--
Thor Larholm



Mon, 21 Jul 2003 12:48:11 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How can I disable image downloading in IE4.0 in JS?

2. Disable little print/save icon over images

3. Disable little print/save icon over images

4. disable close button without disabling make small button

5. Cached images and Image Object

6. Runlength Encoded Images for 'image' Operator

7. Using GhostScript to change image size and covert to output image

8. image matrix and the image command

9. When is an Image not an Image?

10. Image maps and rollover images...

11. Displaying images stored in an Image field from an ASP

12. Compositing Multiple images into One image using scripting

 

 
Powered by phpBB® Forum Software