Or: var element = $('someElement'); element.hide.bind(element).delay(2);
Best, Tobie On Oct 15, 4:17 am, Walter Lee Davis <wa...@wdstudio.com> wrote: > Try this: > > Element.hide.delay(2,'someElement') > > Walter > > On Oct 14, 2010, at 9:11 PM, JoJo wrote: > > > > > $('someElement').hide.delay(2); > > $('someElement').show.delay(3); > > > These functions trigger this error: "'style' is null or not an object" > > in IE7. The only way to solve it is to write long ugly code: > > > var f = function() { > > $('someElement').hide(); > > }; > > f.delay(2) > > > -- > > 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 > > prototype-scriptaculous+unsubscr...@googlegroups.com > > . > > For more options, visit this group > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en > > . -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.