King Antonius
Nov 15 2007, 16:02
Hows it done? basically im busy creating a website for uni and for future use aswell, basically a portfolio. Im just wondering though, not everybod likes the Style ive got it (red and black and whatnot)
How can i create a link so when clicked it will change the Style Sheet the website is using, so i can include multiple "Skins"
thankyou
raskren
Nov 15 2007, 16:23
Wrong forum.
http://www.alistapart.com/articles/alternate/This article is six years old but still relevant today. It outlines a JavaScript based approach for switching stylesheets. Those without scripting turned on won't be able to switch styles.
King Antonius
Nov 15 2007, 17:27
Quote - (raskren @ Nov 15 2007, 16:23)

Wrong forum.
http://www.alistapart.com/articles/alternate/This article is six years old but still relevant today. It outlines a JavaScript based approach for switching stylesheets. Those without scripting turned on won't be able to switch styles.
Sorry my bad, but thanks for the help
Primexx
Nov 16 2007, 20:39
if you want it to be more functional you could do the style switching server side and then use AJAX to dynamically update the page. that way those with JS disabled will still be able to change stylesheets, but just needs a page refresh.
Smitjel
Nov 29 2007, 05:38