Hello!
I''m trying to use the Opacity effect in Internet Explorer. It seems to
be working on most items, but i have a few that are resisting. In
fact, their hasLayout value is set to -1, although they''re floated
left, have width, and height.
Thank you to anybody who''ll help, i''m pretty much desperate in
this
case.
Maxime
Here''s my CSS styles for these elements:
#content div.certificates div.certificate, #content div.features
div.feature {
float: left;
overflow: hidden;
width: 47px;
height: 53px;
margin: 0 1em 1em 0;
font-weight: bold;
}
And now my Javascript: (*note: class "not_assigned" is assigned to the
same DIVs as div.certificate and div.feature)
function setUnassigned() {
var items = document.getElementsByClassName("not_assigned")
if (!items) {
return false
}
items.each(function(item) {
new Effect.Opacity(item, {duration:0.1, from:0.15, to:0.15})
})
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
I don''t see the difference in opacity''s starting and ending values. From 0.15 to 0.15 ? On Feb 28, 6:57 am, MaxBlack <mange.ton.dis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello! > I''m trying to use the Opacity effect in Internet Explorer. It seems to > be working on most items, but i have a few that are resisting. In > fact, their hasLayout value is set to -1, although they''re floated > left, have width, and height. > > Thank you to anybody who''ll help, i''m pretty much desperate in this > case. > > Maxime > > Here''s my CSS styles for these elements: > > #content div.certificates div.certificate, #content div.features > div.feature { > float: left; > overflow: hidden; > width: 47px; > height: 53px; > margin: 0 1em 1em 0; > font-weight: bold; > > } > > And now my Javascript: (*note: class "not_assigned" is assigned to the > same DIVs as div.certificate and div.feature) > > function setUnassigned() { > var items = document.getElementsByClassName("not_assigned") > if (!items) { > return false > } > items.each(function(item) { > new Effect.Opacity(item, {duration:0.1, from:0.15, to:0.15}) > })}--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
If hasLayout is the problem try adding this to your CSS:
div.feeature {
zoom: 1;
}
This is not standard compliant so you may wish to hiding your IE only
CSS from other browsers with conditional comments.
On Feb 28, 9:57 pm, MaxBlack
<mange.ton.dis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello!
> I''m trying to use the Opacity effect in Internet Explorer. It
seems to
> be working on most items, but i have a few that are resisting. In
> fact, their hasLayout value is set to -1, although they''re floated
> left, have width, and height.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---