Wondering whether anybody knows a workaround for Opera 7 to be able to reference CSS files via JavaScript.
eg.
IE5+:
[COLOR=009900]
[/color]
[COLOR=009900]
[/color]
[COLOR=009900]
[/color]
[COLOR=009900]
[/color]
[COLOR=990000]
[/color]
[COLOR=990000]
[/color]
NS6+:
[COLOR=009900]
[/color]
[COLOR=009900]
[/color]
[COLOR=990000]
[/color]
[COLOR=990000]
[/color]
[COLOR=009900]
[/color]
[COLOR=009900]
[/color]
Opera:
[COLOR=009900]
[/color]
[COLOR=990000]
[/color]
[COLOR=990000]
[/color]
[COLOR=990000]
[/color]
[COLOR=990000]
[/color]
[COLOR=990000]
[/color]
is the only resource I could find that also states Opera 7 doesn't support this method.
There's gotta be a way!?! Or is Opera that useless?
btw, if it makes any difference, I am using Opera 7.11 Windows.
eg.
IE5+:
[COLOR=009900]
Code:
alert(document.styleSheets);
[COLOR=009900]
Code:
alert(document.styleSheets[0]);
[COLOR=009900]
Code:
alert(document.styleSheets[0].rules);
[COLOR=009900]
Code:
alert(document.styleSheets[0].rules[0]);
[COLOR=990000]
Code:
alert(document.styleSheets[0].cssRules);
[COLOR=990000]
Code:
alert(document.styleSheets[0].cssRules[0]);
NS6+:
[COLOR=009900]
Code:
alert(document.styleSheets);
[COLOR=009900]
Code:
alert(document.styleSheets[0]);
[COLOR=990000]
Code:
alert(document.styleSheets[0].rules);
[COLOR=990000]
Code:
alert(document.styleSheets[0].rules[0]);
[COLOR=009900]
Code:
alert(document.styleSheets[0].cssRules);
[COLOR=009900]
Code:
alert(document.styleSheets[0].cssRules[0]);
Opera:
[COLOR=009900]
Code:
alert(document.styleSheets);
[COLOR=990000]
Code:
alert(document.styleSheets[0]);
[COLOR=990000]
Code:
alert(document.styleSheets[0].rules);
[COLOR=990000]
Code:
alert(document.styleSheets[0].rules[0]);
[COLOR=990000]
Code:
alert(document.styleSheets[0].cssRules);
[COLOR=990000]
Code:
alert(document.styleSheets[0].cssRules[0]);
is the only resource I could find that also states Opera 7 doesn't support this method.
There's gotta be a way!?! Or is Opera that useless?
btw, if it makes any difference, I am using Opera 7.11 Windows.