[Proto-Scripty] Re: Prototype's setOpacity does not work consistently in all browsers

2008-10-27 Thread Tobie Langel
Element.extend(document.body);         document.body.insert({bottom: newDiv}).setOpacity(0.5); That's equivalent to doing this: Element.extend(document.body); document.body.insert({bottom: newDiv}) document.body.setOpacity(0.5); Is that what you are trying to do?

[Proto-Scripty] Re: Prototype's setOpacity does not work consistently in all browsers

2008-10-27 Thread Paul Kim
I don't think document.body.insert({bottom: newDiv}).setOpacity(0.5); is equivalent to document.body.insert({bottom: newDiv}); document.body.setOpacity(0.5); because the first one is setting newDiv with an opacity of 0.5 whereas the second one is setting body with an opacity of 0.5. What I'm

[Proto-Scripty] Re: Prototype's setOpacity does not work consistently in all browsers

2008-10-27 Thread Paul Kim
Hi, I realized that I made a mistake: Element.extend(document.body); document.body.insert({bottom: newDiv}).setOpacity(0.5); should have been Element.extend(document.body); document.body.insert({bottom: newDiv}); newDiv.setOpacity(0.5); Now,