The getComputedStyle() method returns an object of type CSSStyleDeclaration.
While that object does have the .setProperty() method, the .getComputedStyle() method returns only a read-only interface to that object, according to Mozilla. Therefore only "get" (read) methods work, not "set" (write) methods.
I suggest you re-code and try to open the CSSStyleDeclaration object with its read-write interface. Look at the internal and external stylesheets using Javascript, and find your property with information you obtained by .getComputedStyle(), then set it via the r/w interface.
Last edited by mavigozler; 07-16-2012 at 02:24 AM.
Bookmarks