473,785 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Desperate for a JS stylesheet-switcher

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
2 2078
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3103
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="abc-xsl.xsl"?> <!ELEMENT ABCMessage (Tag1, Tag2, Tag3, Tag4, Tag5, Tag6, Tag7, Tag8*)> <!ATTLIST ABCMessage
1
1660
by: Steven An | last post by:
I'm gonna describe the situation I'm dealing with..but if you're not interested, just skip to the last line where I bluntly ask my question :) Here's my scenario: I've got a huge website that has many pages. Each page has its own content (which changes often). So I wanna use XSLT stylesheets to create these pages (so I can modify the appearance of the whole site easily). So that's pretty straightforward: one XML file per page, with a...
4
3320
by: Catherine Lynn Smith | last post by:
OK, I am learning my way around the new DOM, but I am still at a loss on finding a few things. I have an HTML document that links to a stylesheet. /* START STYLESHEET EXAMPLE */ /* styles/mystyles.css */ ..leftnav { font-family: Arial, Helvetica, sans-serif; font-size: 13pt;
5
6114
by: David Trimboli | last post by:
I'm writing HTML 4.01 and CSS 2 pages that include a CSS-driven pop-up menu. What I'm trying to do is create a screen style that uses the menu, links, etc. normally, and a print style that removes all of this and just presents the main content. I'm pretty sure all my code is up to spec (everything validates), even if the design isn't heart-stopping. However, Firefox seems to choke on the stylesheets. When the screen style is declared...
7
5208
by: pintihar | last post by:
Hi, As a follow on from an earlier post I have another question about xslt. Is it possible to create the stylsheet programatically? Is this sensible? In the first phase I needed to map element name from inbound xml to my internal elements to standardize disparate input. Now I could just create an xslt stylesheet for each possible inbound format and be done, but I think it would be powerful to be able store this mapping in a database and...
0
1213
by: barney.b | last post by:
Hi, I'm trying to pre-process an XSL stylesheet with another stylesheet, before using the result to transform an XML document. i.e.: stylesheet(xsl) --> preprocessor(xsl) --> temp(xsl) input(xml) --> temp(xsl) --> output(xml) but I'm getting a NullPointerException. I'm not 100% sure exactly what is going on here, so if someone could help I'd be grateful.
3
3305
by: gdelfino | last post by:
I have an XML file which I transform into XHTML using stylesheetA.xsl. I also have stylesheetB.xsl which transforms my XML file into an Excel XML document. As both Excel and most new browsers have a built in XSTL engine, I decided to add the stylesheet information to the original XML file. Like this <?xml version="1.0" encoding="utf-8" standalone="yes"?> <?xml-stylesheet href="stylesheetA.xsl" type="text/xsl" media="excel"?>
7
1689
by: Ladysniper | last post by:
DESPERATE doesn't begin to describe it. Can someone PLEASE tell me what is WRONG with this code? Now..a bit of background. It is a search results page for http://www.azsoma.info/directory.htm. (use Scottsdale for the city) If you go look, you see that the search results post (I do have my table borders up for debugging) but it doesn't line up with the table above it...the whole scroll background doesn't show up and I cannot get
1
1582
by: KJ | last post by:
I am building an ASP.NET 2.0 Web Site in VS 2005 Team Edition SP1. Every time I edit any HTML (not just server controls, even if I edit a div), or even if I edit the stylesheet (yes, the .css file), I get the error below. This is getting to be a nightmare, and I'd love some suggestions on how to stop it. I have the Edit and Continue setting enabled, but that doesn't help any. Please help if you can. The error follows: Server Error in...
1
1684
by: Dave Rado | last post by:
Hi A while ago I discovered a way of creating css pseudo-frames, that offer users the important benefits of real frames (i.e. the navigation remains visible when you scroll down the page), but without most of the drawbacks (in particular, unlike real frames, this method is bookmarks-friendly and search engine-friendly). However, the method still has sufficient drawbacks from an accessibility point of view that I have been planning to...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10330
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9952
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.