
February 27th, 2001, 11:02 PM
|
|
Code Junky
|
|
Join Date: Jan 2001
Location: Central Missouri
Posts: 358
Time spent in forums: 8 h 11 m 4 sec
Reputation Power: 0
|
|
I've been slaving on this one, and don't seem to be getting anywhere.
I've accomplished my goal in IE 5.x using the following:
document.styleSheets[x].rules[x].selectorText
this gives me the "name" of the CSS selector.
In reading the CSS2 DOM, the following "should" work in NN, but I get a "bank" or "null" result.
document.stylesSheets[x].cssRules[x].selectorText
If I call the cssText attribute, I get all the text (properties) of the class, if I pull a type attribute
I get the appropriate (1) response.
Anyone, have any thoughts as to the nature of the problem?
Insight:
I'm building a "select" menu of the attached Style Sheet of the given document, to allow for "dynamic" altering of classes in a document, etc.. that's vague I know.. but anyway.. obviously, to build the select menu, I need to know the selectorText values from the style sheet.
|