Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Switching CSS styles?
Old 04-26-2009, 06:12 AM Switching CSS styles?
Extreme Talker

Posts: 176
Name: Aaric
Trades: 0
Is there a good tutorial anywhere for a beginner? I was looking at http://www.aol.com/?src=aimzones and noticed the little style switcher up in the corner... I am about to do a site for a band. I've never done a site for a band but it will have to be different than any other site I've done. I normally do websites for businesses or Mixed Martial Arts fighters and organizations. This site will need to be more creative and less straight forward/professional.

Have any of you ever done a site w/a style switcher?

Example links?

Tutorial links?

Thank ahead! You guys always help me out so much! I've never been to this forum but have spent A LOT of time and got A LOT of help over on the PHP forum.

Aaric
aaricwon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-26-2009, 11:50 AM Re: Switching CSS styles?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Google is your friend:
http://www.google.com/search?q=css+s...en-US:official
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-26-2009, 12:11 PM Re: Switching CSS styles?
Super Moderator

Posts: 1,576
Location: Kokkola, Finland
Trades: 1
there's one on a list apart e.g. http://www.alistapart.com/articles/alternate/
davemies is online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 04-26-2009, 02:28 PM Re: Switching CSS styles?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
There's nothing special about that style switcher. All it is doing is changing a class on the <body> via JavaScript. All of the other rules are done in the CSS document, as rule variations as descendants of the different classes.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 04-26-2009, 04:14 PM Re: Switching CSS styles?
Super Moderator

Posts: 1,576
Location: Kokkola, Finland
Trades: 1
Quote:
Originally Posted by wayfarer07 View Post
There's nothing special about that style switcher. All it is doing is changing a class on the <body> via JavaScript. All of the other rules are done in the CSS document, as rule variations as descendants of the different classes.
sorry - didn't realise the OP wanted something 'sepcial' just thought they wanted something that worked...
davemies is online now
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 04-26-2009, 08:40 PM Re: Switching CSS styles?
Extreme Talker

Posts: 176
Name: Aaric
Trades: 0
I didn't want anything special. I just wanted to see how it is done. Just something that works.

Quote:
Originally Posted by davemies View Post
sorry - didn't realise the OP wanted something 'sepcial' just thought they wanted something that worked...
aaricwon is offline
Reply With Quote
View Public Profile
 
Old 04-29-2009, 12:52 PM Re: Switching CSS styles?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
In case anyone was confused, I was referring to the style switcher at http://www.aol.com/?src=aimzones not the one at Alistapart, which I didn't review.

All that is required for something like that, is a simple script which changes one class on the body. If you need more help doing this, it would be better to ask in the JavaScript forum, then use your knowledge of CSS to accomplish the rest.
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-02-2009, 03:53 PM Re: Switching CSS styles?
Physicsguy's Avatar
404 - Title not found

Latest Blog Post:
Challenges
Posts: 824
Name: Scott
Location: Ontario
Trades: 0
http://www.dynamicdrive.com/dynamici...etswitcher.htm

Hope this helps


My site has the same thing; http://www.execulink.com/~kayes/physicsguy/web/
__________________
Check out my
Please login or register to view this content. Registration is FREE

Last edited by Physicsguy; 05-02-2009 at 04:01 PM..
Physicsguy is online now
Reply With Quote
View Public Profile
 
Old 05-03-2009, 01:38 AM Re: Switching CSS styles?
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
I've used the one posted above from A List Apart.
It worked well for me.
Basically you make a style sheet and variations, the user then can switch between them in the browser menu, or you can provide a box that uses java onClick event to switch the stylesheet. It will also store a cookie to remember the users preference for their next visit.
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Reply     « Reply to Switching CSS styles?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29985 seconds with 12 queries