HighDots Forums  

I'm trying to get a style switcher going for my site(forthe colour scheme)

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss I'm trying to get a style switcher going for my site(forthe colour scheme) in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hagan?
 
Posts: n/a

Default I'm trying to get a style switcher going for my site(forthe colour scheme) - 04-03-2009 , 12:17 PM






I'd like to give my users the choice of changing the colour scheme of my site
(http://chaoscoalition.net) at will, through css style changing buttons such as
the ones on the forum's theme(http://forum.chaoscoalition.net).

I've read many articles and tutorials on how to set up alternate stylesheets
for a webpage, but I can't quite get it right. Every time I seem to have gotten
it right, it either opens the php file that sets the cookie, or it opens the
stylesheet as text. I want to end up with something like the forum's theme
changing module, but for the homepage.

I have 5 different versions of the page made, all as different pages(php
format), but I don't understand how to link the buttons at the top to trigger
the stylesheet change, and I don't even knwo if it's possible to rely on a css
file to change the whole colour scheme of the page(which is image based).

It'd be great if someone could walk me through this, or offer some tutorial
that explains how to do this from scratch.

Thank you.


Reply With Quote
  #2  
Old   
Nancy O
 
Posts: n/a

Default Re: I'm trying to get a style switcher going for my site(for the colour scheme) - 04-03-2009 , 01:34 PM






I have a crude example of a stylesheet changer JavaScript set up on this
page. Your CSS can change whatever you wish (color scheme, page width,
etc..).

Look at the source code in your browser to see how it's set-up.

http://alt-web.com/TEMPLATES/variable_width.shtml

And the script can be found here:
http://alt-web.com/Scripts/changesheets.js


--
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb/
www.alt-web.blogspot.com/



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.