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.
tiger86
16
Posting Pro
Recommended Answers
Jump to PostYes, 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.
Jump to PostNot 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.
Jump to PostOk il let you know when am done!
All 12 Replies
mike_g
2
Newbie Poster
tiger86
16
Posting Pro
mike_g
2
Newbie Poster
tiger86
16
Posting Pro
essential
84
Posting Shark
Featured Poster
tiger86
16
Posting Pro
essential
84
Posting Shark
Featured Poster
tiger86
16
Posting Pro
essential
84
Posting Shark
Featured Poster
essential
84
Posting Shark
Featured Poster
tiger86
commented:
Essential is very nice and helpful.
+1
MelechM
1
Junior Poster in Training
MelechM
1
Junior Poster in Training
tiger86
commented:
Thanks :)
+1
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.