is it possible to make changable themes with css?

Thread Solved

Join Date: Feb 2008
Posts: 469
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

is it possible to make changable themes with css?

 
0
  #1
Aug 22nd, 2008
Hey, I am hoping some kind soul out there can help me out. I want to make a site I am working on able to have more then one theme for example: Blue: Pink:Green:Flames is it possible to make it so when the person clicks the link it can load a css stylesheet for the whole website? I don't want to make each page in every theme color.
Last edited by tiger86; Aug 22nd, 2008 at 6:13 pm. Reason: silly emoticon coding changed my words
If I helped you I would appreciate it if you would give me some reputation.
Follow the new Social Network Planet Zuda On twitter. Planet Zuda should go live sometime in 2010.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 14
Reputation: mike_g is an unknown quantity at this point 
Solved Threads: 3
mike_g mike_g is offline Offline
Newbie Poster

Re: is it possible to make changable themes with css?

 
0
  #2
Aug 22nd, 2008
Yes, but AFAIK it would require a little scripting. You could save the style in a cookie, then select a stylesheet based on the value when the page loads.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 469
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

Re: is it possible to make changable themes with css?

 
0
  #3
Aug 22nd, 2008
Okay... so put the css style sheet within a cookie and then how will it know to load that cookie?
If I helped you I would appreciate it if you would give me some reputation.
Follow the new Social Network Planet Zuda On twitter. Planet Zuda should go live sometime in 2010.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 14
Reputation: mike_g is an unknown quantity at this point 
Solved Threads: 3
mike_g mike_g is offline Offline
Newbie Poster

Re: is it possible to make changable themes with css?

 
0
  #4
Aug 22nd, 2008
Not quite. You just store an id indicating which stylesheet to load. When loading the page you would then check for the id in the cookie, and if the cookie does not exits use the default style. You could then have a switch/if statement which includes the correct stylesheet.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 469
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

Re: is it possible to make changable themes with css?

 
0
  #5
Aug 22nd, 2008
could you give me a site that does this so I can read the source code to get a better understanding? Please and Thank you.
If I helped you I would appreciate it if you would give me some reputation.
Follow the new Social Network Planet Zuda On twitter. Planet Zuda should go live sometime in 2010.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: is it possible to make changable themes with css?

 
0
  #6
Sep 4th, 2008
Yeah it is possible! But in this case we'l have to use some script to work over it! You my try JavaScript instead!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 469
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

Re: is it possible to make changable themes with css?

 
0
  #7
Sep 4th, 2008
Thanks, I don't know that much Javascript I am currently studying actionscript.
If I helped you I would appreciate it if you would give me some reputation.
Follow the new Social Network Planet Zuda On twitter. Planet Zuda should go live sometime in 2010.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: is it possible to make changable themes with css?

 
0
  #8
Sep 4th, 2008
I can work on it if you really need it! Just lemme know, ok!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 469
Reputation: tiger86 is an unknown quantity at this point 
Solved Threads: 10
tiger86's Avatar
tiger86 tiger86 is offline Offline
Posting Pro in Training

Re: is it possible to make changable themes with css?

 
0
  #9
Sep 4th, 2008
Thanks a ton!
If I helped you I would appreciate it if you would give me some reputation.
Follow the new Social Network Planet Zuda On twitter. Planet Zuda should go live sometime in 2010.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 954
Reputation: essential will become famous soon enough essential will become famous soon enough 
Solved Threads: 131
Featured Poster
essential's Avatar
essential essential is offline Offline
Posting Shark

Re: is it possible to make changable themes with css?

 
0
  #10
Sep 4th, 2008
I can provide you some script on that 1! Just lemme know, ok!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum


Views: 1410 | Replies: 12
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC