CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 28th, 2003, 12:24 PM
Andrew Spearin Andrew Spearin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Canada
Posts: 7 Andrew Spearin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Andrew Spearin
Client Side CSS Options

Hi,

I was wondering if there is a tutorial somewhere or if someone would be willing to help me in having a client side option of which css style sheet is enabled.

http://opcoin.city-17.net/newsite

The above URL is where I am creating the website which I would like to have two options to change the CSS Style Sheet. So far I have created both sheets that I want to have options for.

http://opcoin.city-17.net/newsite/styles/army.css
http://opcoin.city-17.net/newsite/styles/guer.css

A simple drop-down menu on the side of the page would be the ideal way of selecting which CSS Sheet the client would like to enable. The preference would then be stored in a cookie (which I also need help with because I don't know how to bake ).

Any help would be much appreciated!

Reply With Quote
  #2  
Old August 28th, 2003, 12:51 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,622 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 2 h 17 m 15 sec
Reputation Power: 548
you could use alternative style sheets,
with the link tag,

ie.
<link rel="alternate stylesheet"
title="Oldstyle" href="http://www.w3.org/StyleSheets/Core/Oldstyle">



http://www.w3.org/Style/Examples/007/alternatives.html

Reply With Quote
  #3  
Old August 28th, 2003, 12:51 PM
fgeller's Avatar
fgeller fgeller is offline
:(){ :|:&};:
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Germany
Posts: 297 fgeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 4 m 52 sec
Reputation Power: 5
Send a message via ICQ to fgeller
Hmm this page should give you an idea:
http://www.e-lusion.com

But if that is too complicated or not what you are looking for:
I am using a Javascript Function to create a cookie, from which I read the value using PHP and print the value of that cookie into the <link /> Tag using PHP again. It is very simple but in my eyes everything I need If you need help with this, please post again, or email me.

As for switching Styles, there is a Page called Zengarden at w3.org which is dedicated to this issue I don't have the url at hand right now - just search for it at w3.org
__________________
regards >_<

ws. fgeller.de
em. felix@fgeller.de

Reply With Quote
  #4  
Old August 28th, 2003, 12:52 PM
fgeller's Avatar
fgeller fgeller is offline
:(){ :|:&};:
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Germany
Posts: 297 fgeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 4 m 52 sec
Reputation Power: 5
Send a message via ICQ to fgeller
@Akh

Is that supported by IE already? I know that Mozilla is able to do that and offers you a new menu option - but offers IE that too ?

Reply With Quote
  #5  
Old August 28th, 2003, 12:59 PM
Andrew Spearin Andrew Spearin is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Canada
Posts: 7 Andrew Spearin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Andrew Spearin
Thanks a lot guys I will first try what Akh posted, then see what goes from there.

Zen Garden: http://www.w3.org/Style/CSS/

That example you posted was great fgeller! But, I like the sounds of what you are doing even better I might e-mail you if I need more help.

Thanks again

Reply With Quote
  #6  
Old August 28th, 2003, 01:02 PM
fgeller's Avatar
fgeller fgeller is offline
:(){ :|:&};:
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Germany
Posts: 297 fgeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 4 m 52 sec
Reputation Power: 5
Send a message via ICQ to fgeller
Do as you wish

Good luck

Reply With Quote
  #7  
Old August 28th, 2003, 03:00 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,622 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 2 h 17 m 15 sec
Reputation Power: 548
Quote:
Originally posted by fgeller
@Akh

Is that supported by IE already? I know that Mozilla is able to do that and offers you a new menu option - but offers IE that too ?


not sure as i can't check it right now,
but most browsers do support it, mozilla, opera, konqueror,

Reply With Quote
  #8  
Old August 28th, 2003, 03:31 PM
fgeller's Avatar
fgeller fgeller is offline
:(){ :|:&};:
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Germany
Posts: 297 fgeller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 4 m 52 sec
Reputation Power: 5
Send a message via ICQ to fgeller
hmm I tested w3.org/style and it did not work. But well Internet Explorer 6 sucks anyways It isn't up to date if you try to use the new css features.. Kind of the total opposite from what is was a few years ago, thinking of ie4 when MS was kind of the Avantgarde of CSS

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Client Side CSS Options


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway