iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Accessibility and Usability Forum Discuss topics related to website accessibility and usability. Subjects include; testing techniques, tutorials, guidelines and legal issues.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-2007, 10:43 AM
kgun's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 5,673
kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9kgun RepRank 9
Default Style sheet switcher and hiding style sheets

You should read this post:
Modern webbrowsers, accessibility and usability.

before you continue.

I am now back to basics and reading this excellent book:

Rachel Andrew (August 2006): "The CSS Anthology: 101 Essential Tips, Tricks & Hacks."

Chapter 7 "Browser and device support" and the code that comes with the book are well worth the price of the book.

The setting is as follows:
  • Browsers that has inbuilt methods to render a page, so it is accessible to different users, like Opera 9.1.
  • Browsers that has options to switch style sheets like Firefox 2.0.0.2. Firefox also has the option to show "No style sheet."
  • Browsers that has no option to swithc style sheets like internet explorer.
  • Browsers that does not support style sheets at all.

This post is about the two last points.

Style sheet switcher using JavaScript.

Example (upper right corner):
Alternate-Stylesheets

View source to see how it is implemented.

Link:
Working With Alternate Style Sheets

Browsers that do not support CSS.
Such browsers may still be used at libraries, schools etc.

If your browser does not support CSS at all, you can use a filter to hide the style sheet.

Related links:
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum > Accessibility and Usability Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:34 AM.



Search Engine Optimization by vBSEO 3.3.0