User customization using a style sheet switcher and scripts.
Added on Monday 3 Nov 2003
Gez at Juicy Studio has created an ASP version of my turbo-charged style sheet switcher. He has also christened it, the 'Byrne/Lemon Technique' - which I like the sound of. :-)
Apart from providing and excellent tutorial and the required ASP code (more elegantly coded than my own) - he has also fixed a few problems:
Changing the file suffix of the external style sheets to .php meant Gecko based browser were not getting the correct MIME type (i.e. the style sheet was not being recognised as a style sheet). For my own PHP example this is solved adding the following code to the top of each external style sheet:
<?php
header('Content-Type: text/css');?>- The presentation changes made via the form do not always appear to work in Opera, due to the style sheet being cached. Caching the style sheet is of course a good thing, as it saves on download time - but in this case it creates a problem Gez suggests, 'a gentle reminder to refresh the page having made changes helps the visitor understand what's happened. "