Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-16 13:55:27

FireFusion
Member
Registered: 2005-05-10
Posts: 698

How easy would this be to do?

I want to adapt an existing style sheet switcher like this one to change site style when just one element is clicked.

What I want is when the logo of my site is clicked it changes to the next the style sheet.

Brown.css < starts here
Red.css < click on logo brown.css switches to red.css
Green.css < clicked again red switches to green
Yellow.css < green switches to yellow
Brown.css < And back to brown

I have next to no knowledge PHP how easy do you think this would be to make? Could you make it for me (pretty please)?

Last edited by FireFusion (2005-10-16 14:07:09)

Offline

#2 2005-10-16 15:58:29

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: How easy would this be to do?

That should not be too hard to do. I don’t have time just at the moment but have a look at this <a href=“http://www.digital-web.com/articles/strategies_for_css_switching/”>Stuff and Nonsense article</a>. The PHP style switcher is short and sweet and I think you could follow it without any php knowledge.

Are you sure you want your logo to act as your switching button? It would be non-standard as logo usually takes you to home page.


BB6 Band My band
Gud One My blog

Offline

#3 2005-10-16 16:51:10

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: How easy would this be to do?

Thank you. It’s not the main site logo, btw.

Offline

#4 2005-10-17 14:18:24

neutrino
Member
From: East of the Diablo Range
Registered: 2005-06-16
Posts: 134
Website

Re: How easy would this be to do?

There is also this.

Offline

Board footer

Powered by FluxBB