Click here to get back home

Script to allow user to select style sheet?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Script to allow user to select style sheet? Daniel Greene 08-22-2006
Get Chitika Premium
Posted by Daniel Greene on August 22, 2006, 11:12 am
Please log in for more thread options


Dear web writers,

My lucky web visitors who are using certain browsers can select one of
my style sheets out of a list, and see how my pages change "before
their very eyes." Cool! But what if they're using one of those browsers
that doesn't allow the user to select from a list of author's style
sheets? Is there a script I can write to create an object on the page
itself that allows users to see the magic of CSS in action? I know
there is one, because I can think of sites I've seen that have it... I
just don't know what it is. Can anyone help me with that?

Thanks,

Daniel
-----
Continuously improving http://danielgreene.com/style.html (and all the
other pages too)


Posted by Els on August 22, 2006, 11:37 am
Please log in for more thread options


Daniel Greene wrote:

> Dear web writers,
>
> My lucky web visitors who are using certain browsers can select one of
> my style sheets out of a list, and see how my pages change "before
> their very eyes." Cool! But what if they're using one of those browsers
> that doesn't allow the user to select from a list of author's style
> sheets? Is there a script I can write to create an object on the page
> itself that allows users to see the magic of CSS in action? I know
> there is one, because I can think of sites I've seen that have it... I
> just don't know what it is. Can anyone help me with that?

http://csschanger.usenetshit.info/

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/

Posted by Spartanicus on August 22, 2006, 11:46 am
Please log in for more thread options



>My lucky web visitors who are using certain browsers can select one of
>my style sheets out of a list, and see how my pages change "before
>their very eyes." Cool!

Maybe for you, but does it serve a useful purpose for a user?

>But what if they're using one of those browsers
>that doesn't allow the user to select from a list of author's style
>sheets? Is there a script I can write to create an object on the page
>itself that allows users to see the magic of CSS in action?

If as is usually the case the stylesheet switching serves no useful
purpose for a user, you should at least have the decency not to throw an
in-document UI widget in people's faces. Surely you can use a browser
that does have a native alternate stylesheet switching UI to have your
"Look Ma, I can change stylesheets" experience?

>I know
>there is one, because I can think of sites I've seen that have it... I
>just don't know what it is. Can anyone help me with that?

If you are really determined to go down this route then Googling for
"alternate stylesheet switcher" should throw up a number of hits.

--
Spartanicus

Posted by moojoo on August 22, 2006, 3:40 pm
Please log in for more thread options


You can do it with javascript, php etc. Plenty of good ones. I would
check www.alistapart.com for a tutorial on it. The advantages are
numerous ranging from accessibility to simple fun. Common practice is
to use a style switcher so people can push an icon on your page and
adjust font size etc, another is to make a high contrast style sheet it
goes on and on.


Daniel Greene wrote:
> Dear web writers,
>
> My lucky web visitors who are using certain browsers can select one of
> my style sheets out of a list, and see how my pages change "before
> their very eyes." Cool! But what if they're using one of those browsers
> that doesn't allow the user to select from a list of author's style
> sheets? Is there a script I can write to create an object on the page
> itself that allows users to see the magic of CSS in action? I know
> there is one, because I can think of sites I've seen that have it... I
> just don't know what it is. Can anyone help me with that?
>
> Thanks,
>
> Daniel
> -----
> Continuously improving http://danielgreene.com/style.html (and all the
> other pages too)


Similar ThreadsPosted
Style Sheet Woes June 23, 2005, 1:54 pm
External style sheet a no go June 4, 2008, 3:35 am
Can a font face be specified in a style sheet? May 23, 2005, 2:37 am
Finding out "internal style sheet" of a browser? November 2, 2005, 2:48 am
Can a cgi (eg Perl) script output a URL so that user is directed to a particular web page June 21, 2005, 10:29 pm
Problem with new HTML / CSS sheet May 29, 2005, 2:23 am
XHTML DOCTYPE breaks JavaScript x.style.top and x.style.left? July 5, 2005, 12:58 pm
html form to populate into an excel sheet? April 7, 2005, 7:49 pm
Does April 7, 2006, 9:05 pm
User editing September 22, 2006, 11:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap