VK wrote:
Say in case:
<style type="text/css">
.foo {
color: blue;
}
</style>
...
<div class="foo"...
There is no way to get a reference to the "foo" rule or to
change/remove it?
All you can do in Opera is to use the Core and HTML DOM to manipulate
HTML style elements e.g. to change something you could add a new style
element at the end of the head element e.g.
var styleElement = document.createElement('style');
styleElement.type = 'text/css';
styleElement.appendChild(document.createTextNode(
'.foo { background-color: transparent }'
));
document.getElementsByTagName('head')[0].appendChild(styleElement);
Or you can remove a complete style element e.g.
styleElement.parentNode.removeChild(styleElement)
Opera reacts to those DOM changes and makes the necessary CSS changes
resulting from that.
--
Martin Honnen
http://JavaScript.FAQTs.com/