[Proto-Scripty] Re: Effect.Highlight Breaks CSS Hover

2009-07-18 Thread T.J. Crowder
> Thanks! No worries. I should have mentioned -- although I'm sure you realize -- that you can create the options once and reuse them: var fxoptRestoreStyle = { beforeStart: function(effect) { effect.saveStyle = effect.element.style.cssText; }, afterFinish: function(effect)

[Proto-Scripty] Re: Effect.Highlight Breaks CSS Hover

2009-07-17 Thread Nicholas Van Weerdenburg
Thanks! On Fri, Jul 17, 2009 at 10:42 AM, T.J. Crowder wrote: > > Hi, > > Yeah, bit of a pain that there's no standard way to _remove_ a style > from the style property entirely. Setting things to "" is not the > same thing. > > However: Effects offer beforeStart and afterFinish callbacks, and

[Proto-Scripty] Re: Effect.Highlight Breaks CSS Hover

2009-07-17 Thread Tobie Langel
cssText works in all supported browsers and is of course fully unit tested. Best, Tobie On Jul 17, 4:42 pm, "T.J. Crowder" wrote: > Hi, > > Yeah, bit of a pain that there's no standard way to _remove_ a style > from the style property entirely.  Setting things to "" is not the > same thing. >

[Proto-Scripty] Re: Effect.Highlight Breaks CSS Hover

2009-07-17 Thread T.J. Crowder
Hi, Yeah, bit of a pain that there's no standard way to _remove_ a style from the style property entirely. Setting things to "" is not the same thing. However: Effects offer beforeStart and afterFinish callbacks, and the style property has this nifty cssText property on it, which suggests this