Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CSS Filter question

Reply
Thread Tools

CSS Filter question

 
 
usenet@tynemarch.co.uk
Guest
Posts: n/a
 
      08-02-2007
I would like to use the filters in IE6/IE7 to change the foreground
property of an image. I have a two colour GIF image (e.g. a black
square with a white transparent background) and I would like to change
the image to make the black square red, blue, green etc.

I have tried things along this line:

<img src="square.gif" style="FILTER: Mask(Colour=#FF0000")>

This changes the background colour to red and makes the foreground
colour transparent whereas I just want to change the foreground colour
and leave the background colour transparent.

Any ideas?

 
Reply With Quote
 
 
 
 
usenet@tynemarch.co.uk
Guest
Posts: n/a
 
      08-02-2007
On 2 Aug, 10:11, (E-Mail Removed) wrote:
> I would like to use the filters in IE6/IE7 to change the foreground
> property of an image. I have a two colour GIF image (e.g. a black
> square with a white transparent background) and I would like to change
> the image to make the black square red, blue, green etc.
>
> I have tried things along this line:
>
> <img src="square.gif" style="FILTER: Mask(Colour=#FF0000")>
>
> This changes the background colour to red and makes the foreground
> colour transparent whereas I just want to change the foreground colour
> and leave the background colour transparent.
>
> Any ideas?


I have figured this out. I had to make my foreground colour
transparent.

Rob

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Anti-Spam Filter.(thunderbird spam filter) zax75 Java 1 03-28-2008 06:43 AM
"rec.photo.digital.txt" Filter File Posted Online (for newsreadersthat can import a list of e-mail addresses to filter out) SMS 斯蒂文• 夏 Digital Photography 2 11-25-2007 11:00 AM
Polarising filter with UV filter? Stimp Digital Photography 23 11-17-2006 11:51 AM
to filter of not to filter Ken Digital Photography 2 12-23-2005 12:45 PM
UV Protector filter vs. Skylight filter? john Digital Photography 8 06-26-2004 03:44 PM



Advertisments