Re: Bit of a fickle question...

"John M. Hann" <[email protected]>
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
Hi Seb,

AFAIK, there is no equivalent in Mozilla.  I was looking to do the
same thing in a recent project.  There are, of course, many
alternatives which you may or may not find helpful (you probably
already know these):

1) You could place a semi-transparent image in front of the image you
want to "grey out".  Of course, this isn't grey scale, but may achieve
a similar affect.  

2) You could use the data:image/gif or data:image/jpeg URI formats for
the images and use client-side Javascript to manipulate the images. 
Of course, IE does not support those URI formats, unfortunately, so
you'd have a code fork.

FYI, I ended up creating the greyed-out images server-side.  There are
server-side graphics rendering (GD, GD+) engines readily available for
most server OSes...

Regards,

-- John

http://e-numera.com/
http://ajax-web2.com/


--- In [email protected], "Seb Frost" <seb@r...> wrote:
>
> Is it possible to modify an image in Javascript?  I want to make
thumbnails
> greyscale in Firefox, to mimic the (very simply achieved) filter
behaviour
> in IE.
> 
> I'm sure years ago before I even got into webdev I saw websites that had
> greyscale images that became saturated when you rolled over them, but an
> extensive search on google hasn't thrown any light on the subject. 
Is the
> only answer to actually use a 2nd thumbnail that has been converted to
> greyscale beforehand?
> 
> cheers
>





Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.