Good work, I am going to use this in a project I am working now Thank you very much
On 24 mar, 03:16, Ciul <[email protected]> wrote: > Hi MooTools pals, > > yeah, long time ago I haven't posted anything new, sorry for that. > Anyway... > > I was asking Michael (Wowenkho) many times how could I get all the > styles with MooTools. While I didn't understand why Element.getStyles > couldn't achieve it, maybe something like Element.getStyles('all') or > something like that. > > Sooooo, I ended up with this: > > http://jsfiddle.net/Ciul/62kUt/ > Check for javascript console for results > > Element.getAllStyles() > > Returns an object of all styles of the Element > > Syntax: > var styles = myElement.getAllStyles(); > > Returns: > (object) An key/value object with the CSS styles as computed by the > browser. > > You might or might not find it usefull. > > Regards, > Ciul
