|
Posted by Toby Inkster on 09/10/05 02:21
Spartanicus wrote:
> Toby Inkster <usenet200509@tobyinkster.co.uk> wrote:
>
>>Most browser implementations of alternate style sheets so far have been
>>pretty dumb though. Click on a link and you're back to the old style
>>sheet. D'oh!
>
> A browser solution to that issue would have to be based on tracking the
> (sub) domain.
Think smarter.
When the user chooses an alternate style sheet, then goes to another page,
the browser could check to see if the page also offered the same alternate
style sheet. If so, it should keep using that alternate style sheet
instead of the page's default style. As soon as the browser reaches a page
that doesn't offer the same alternate style sheet, it should start using
the page's default style sheet.
> This could screw up a fully separate site that also uses alternate
> stylesheets in a subdirectory of the (sub) domain like the common
> http://www.isp.com/~user construct.
With the algorithm I described above, http://www.isp.com/~john/ would
typically not link to http://www.isp.com/corporate_style.css, so the
browser would revert to John's own style for that page.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|