Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-13 Thread darkflame
Indeed. But you can use a fix to get around it; http://www.twinhelix.com/css/iepngfix/demo/ On Oct 13, 1:54 pm, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote: > Ponthiaux Eric schrieb: > > > Could you use png images instead ? > > AFAIR IE has problems with transparency when showing PNGs (my copy

Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-13 Thread Lothar Kimmeringer
Ponthiaux Eric schrieb: > Could you use png images instead ? AFAIR IE has problems with transparency when showing PNGs (my copy of GWT in Action is at home, so I can't look it up at the moment). Regards, Lothar --~--~-~--~~~---~--~~ You received this message bec

Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-13 Thread Thomas Wrobel
No, because the goal is to make something fade in an out :) I already got it working on IE/Firefox and Opera now, havnt tested Safari yet. Opera/Firefox both seem to work very smoothly with it, in fact. IE works but a little slower to update. I do use PNG images a lot though..lovely format. Not

Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-13 Thread Ponthiaux Eric
Could you use png images instead ? Playing with specials browser attributes is a tricky thing . Basically it will multiply your work at least by 4 ( IE , Firefox , Safari , Opera ). regards. Thomas Wrobel a écrit : > Cheers for the advice, I'll use those methods in future. :) > > 2008/10/13 Ja

Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-13 Thread Thomas Wrobel
Cheers for the advice, I'll use those methods in future. :) 2008/10/13 Jason Morris <[EMAIL PROTECTED]>: > > As a rule of thumb, never setAttribute, when there is a property for that > element that does the same job. For example, use setClassName() instead of > setAttribute("class", ...), and get

Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-13 Thread Jason Morris
As a rule of thumb, never setAttribute, when there is a property for that element that does the same job. For example, use setClassName() instead of setAttribute("class", ...), and getStyle().setProperty() instead of setAttribute("style"). IE has problems handing setAttribute with any "special

Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-12 Thread darkflame
That method worked, I wasnt aware of that method of doing it. Cheers! :) My own method, incidently, always worked in Firefox, and firebug simply showed "opacity: 0.65;" for the style, without the "alpha(opacity=65);" for IE present at all. On Oct 13, 2:10 am, Paul Robinson <[EMAIL PROTECTED]> w

Re: setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-12 Thread Paul Robinson
What happens if you try: Style style = temp.getElement().getStyle(); style.setProperty("filter", "alpha(opacity=65)"); style.setProperty("opacity", "0.65"); firebug will tell you what style is in force for each element HTH Paul darkflame wrote: > I'm trying to make a standard image have a co

setting an image to have a transparent background? (.getElement().setAttribute("style", ".....)

2008-10-12 Thread darkflame
I'm trying to make a standard image have a code-dependant uniform transparency background, and for it to work across all browsers. Doing this in css is easy, and works, but GWT seems to not be having it. I'm using simply; temp.getElement().setAttribute("style", "filter: alpha(opacity=65); opacit