By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

Desperate for a JS stylesheet-switcher

P: n/a
Hi all! (N00b meat here-- :)

Anyway, the header of this message tells you what I am seeking.

The audience for my site is the lowest level tech user (because my agency is
a social service oganization, and we have low-income, and perhaps even
visually disabled citizens that will be visiting our pages)

So I am looking for robust stylesheets--first, to solve the browser
compatibility and Section 508 issues for me. Then, I can get moving with the
design of the site.

I nabbed 4 or 5 really awesome stylesheets from plone.org (an opensource web
collab suite, that runs on the Zope web server). There is a sheet that fixes
the Netscape bugs, a sheet for printing, a sheet for just about any problem.
But the switcher - script seems to be a dtml method or something written in
Python. (Chit! Nothing is simple, is it?)

So, has anyone got a JS script that will snoop out the browser version, etc
and then switch the stylesheet? Like what happens on that Plone site? I have
seen the script at Webmonkey.com and its just not good enough.

Any help will be greatly savored. Thanks in advance!!

Chris
Philadelphia
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Christo" <si**************@yahoo.com> wrote:
Anyway, the header of this message tells you what I am seeking.


http://www.alistapart.com/articles/alternate/

--
Spartanicus
Jul 20 '05 #2

P: n/a
Christo wrote:
Hi all! (N00b meat here-- :)
Using a smiley emoticon is not going to get you a buy.
Anyway, the header of this message tells you what I am seeking.
And a search of this group would have given you the answer, without
wasting time or bandwidth.
The audience for my site is the lowest level tech user (because my
agency is a social service oganization, and we have low-income, and
perhaps even visually disabled citizens that will be visiting our
pages)

So I am looking for robust stylesheets--first, to solve the browser
compatibility and Section 508 issues for me. Then, I can get
moving with the design of the site.
Wrong order. Write the navigation first, then markup the content with
html 4.01/strict. Then -- and only then -- apply the css.
There is a sheet that fixes the Netscape bugs, a sheet for
printing, a sheet for just about any problem. But the switcher -
script seems to be a dtml method or something written in Python.
(Chit! Nothing is simple, is it?)
Use media attribute for linked css files. And hide css from browsers
that cannot handle them by exploiting parsing bugs in those very browsers.
So, has anyone got a JS script that will snoop out the browser
version, etc and then switch the stylesheet?


As I just mentioned in another thread, using js to sniff the browser
is a bad idea, inherently unreliable, and entirely unnecessary.

--
Brian (follow directions in my address to email me)
http://www.tsmchughs.com/

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.