943,620 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Aug 22nd, 2008
0

is it possible to make changable themes with css?

Expand Post »
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
Reputation Points: 48
Solved Threads: 11
Posting Pro
tiger86 is offline Offline
540 posts
since Feb 2008
Aug 22nd, 2008
0

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

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.
Reputation Points: 12
Solved Threads: 3
Newbie Poster
mike_g is offline Offline
14 posts
since Jul 2008
Aug 22nd, 2008
0

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

Okay... so put the css style sheet within a cookie and then how will it know to load that cookie?
Reputation Points: 48
Solved Threads: 11
Posting Pro
tiger86 is offline Offline
540 posts
since Feb 2008
Aug 22nd, 2008
0

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

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.
Reputation Points: 12
Solved Threads: 3
Newbie Poster
mike_g is offline Offline
14 posts
since Jul 2008
Aug 22nd, 2008
0

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

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.
Reputation Points: 48
Solved Threads: 11
Posting Pro
tiger86 is offline Offline
540 posts
since Feb 2008
Sep 4th, 2008
0

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

Yeah it is possible! But in this case we'l have to use some script to work over it! You my try JavaScript instead!
Featured Poster
Reputation Points: 114
Solved Threads: 138
Posting Shark
essential is offline Offline
973 posts
since Aug 2008
Sep 4th, 2008
0

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

Thanks, I don't know that much Javascript I am currently studying actionscript.
Reputation Points: 48
Solved Threads: 11
Posting Pro
tiger86 is offline Offline
540 posts
since Feb 2008
Sep 4th, 2008
0

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

I can work on it if you really need it! Just lemme know, ok!
Featured Poster
Reputation Points: 114
Solved Threads: 138
Posting Shark
essential is offline Offline
973 posts
since Aug 2008
Sep 4th, 2008
0

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

Thanks a ton!
Reputation Points: 48
Solved Threads: 11
Posting Pro
tiger86 is offline Offline
540 posts
since Feb 2008
Sep 4th, 2008
0

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

I can provide you some script on that 1! Just lemme know, ok!
Featured Poster
Reputation Points: 114
Solved Threads: 138
Posting Shark
essential is offline Offline
973 posts
since Aug 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Can someone check this...?
Next Thread in HTML and CSS Forum Timeline: Footer Problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC