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?
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
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,