Closed Bug 171408 Opened 24 years ago Closed 24 years ago

Style switcher not working since 1.1

Categories

(SeaMonkey :: General, defect)

x86
Windows ME
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hal97, Assigned: asa)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2a) Gecko/20020910 Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.2a) Gecko/20020910 The style switcher I use works in IE and used to work in Mozilla 1.0, I have tested it in 1.1 and it no longer works (just found out while useing 1.2a). I hav tried to figure out what is wrong and have come to the conclusion that it has to do with mozilla itself. Feel free to look at the JS code (http://www.hal97.com/include/styleswitcher.js). When you use the dropdown menu under where it says "Choose a style:" it should change the CSS, as I said above, it does this in IE and Mozilla 1.0 but not in Mozilla 1.1 or 1.2a. Instead of changing styles it just does nothing (which Reproducible: Always Steps to Reproduce: 1. Load page 2. Select dropdown list and select any style Actual Results: Nothing Expected Results: The alternate stylesheet should have been selected
My own cleaned-up ECMA version of StyleSwitcher at http://www.student.lu.se/~kin02ndo/dvd/adm/stil.js works just fine in any Mozilla. Try http://www.student.lu.se/~kin02ndo/dvd/beautiful_mind/ and see for yourself. An educated guess would be that this snippet is at fault: <select onChange="setActiveStyleSheet(this.value)"> Change "this.value" to "options[selectedIndex].value" and see if it works.
The original stylswitcher at http://www.alistapart.com/switcher.html also works fine in 1.1. It hasn't been updated.
Ok, I figured out the problem. I don't know why it worked before but it WAS in my code. Sorry to bother you.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.