I'm trying to make the code from this link work in a layout where the buttons are within an iframe element, but so that it also affects the parent window:
http://www.thesitewizard.com/javascripts/change-style-sheets.shtml
Right now when I insert the buttons into an iframe and click it, it only changes the css for the iframe. Similarly, when I place the button in the main window, it has no effect over the iframe. How can I change it to affect both at the same time, preferably with the buttons in the iframe?
Vaguely related to that, is the code for the cookie in that example outdated or something? It seems to work only very inconsistently between different browsers.