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 trying to do is created an absolutely positioned div element with an opacity of 0.5 and insert it to the bottom of the <body> tag, not set the <body> tag itself with an opacity of 0.5.
- Paul On Mon, Oct 27, 2008 at 1:20 AM, Tobie Langel <[EMAIL PROTECTED]>wrote: > > > 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? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---