The problem is: i am using ALA’s styleswitcher.js, which chooses between two color schemes. The layout is defined by a persistent stylesheet, and the color schemes by the preferred and alternate stylesheets, link by a “link rel” and with a title attribute each. I am also using a fade-in effect for the text, made by a script that changes the color attribute for the “content” ID using document.getElementById(“content”).style.color=”rgb(and_here_the_variables)”.
Now, when i load the page, the persistent and preferred stylesheets are loaded, and then the fade-in scripts kicks in and the text appears (from white to black). Then i can go to the style switching buttons and choose the alternate style, BUT the color that was changed by the fade-in script STAYS, instead of changing to the color specified in the alternate stylesheet.
So my question is: is there a way to change the color (using that document.getElementByID or something similar) ONLY in the preferred stylesheet, so that when i change to the alternate the new color kicks in?
If not – any other solution you can think off?
Thanks a lot, all help appreciated!
- The topic ‘need DOM advice’ is closed to new replies.