|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Problem Solved!
After much agony, I solved the problems I was having...
Turns out that the currently available version of NS6/6.01 has a bug which prevents it from displaying the selectorText. This should be corrected in the release of NS6 as Mozilla 0.8 provides the solution. On a side note, if you're a NetScape 6 user, I would seriously recommend using Mozilla instead, available from Mozilla.org. This is updated each day, with a daily build.. The download is like really small, less than 3Mb and I've found Mozilla to load about 2 times faster than NS6/6.01 and It's more stable. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > NN6 Problems referencing cssRules[x].selectorText |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|