On my site I would like to have a CSS skin changer, where there are option buttons, and by clicking on them you can easily change the CSS style of the page. For instance, it is first blue, then you go to the option button for Red, click it, and then click on the 'submit' button. Does anyone know how I could do this? Thanks!
rowlettskatescene.comPeep this. (<!-- m --><a class="postlink" href="http://alistapart.com/articles/n4switch/">http://alistapart.com/articles/n4switch/</a><!-- m -->)There is a pretty good example of a style switcher on this (<!-- m --><a class="postlink" href="http://www.apple.com/uk/ipod/">http://www.apple.com/uk/ipod/</a><!-- m -->) apple web-site.
The script for it is located here:
<!-- m --><a class="postlink" href="http://www.apple.com/uk/ipod/colorswitch.jsA">http://www.apple.com/uk/ipod/colorswitch.jsA</a><!-- m --> PHP version...
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=17509Since">http://forums.webdeveloper.com/showthre ... 17509Since</a><!-- m --> we've moved onto server side here's an ASP version. It's up and running on one of my web-sites right now, but all of the style sheets are the same so you don't notice much. I have stripped the script down to just two possible styles but it's very easy to expand.See my customize wiget...
rowlettskatescene.comPeep this. (<!-- m --><a class="postlink" href="http://alistapart.com/articles/n4switch/">http://alistapart.com/articles/n4switch/</a><!-- m -->)There is a pretty good example of a style switcher on this (<!-- m --><a class="postlink" href="http://www.apple.com/uk/ipod/">http://www.apple.com/uk/ipod/</a><!-- m -->) apple web-site.
The script for it is located here:
<!-- m --><a class="postlink" href="http://www.apple.com/uk/ipod/colorswitch.jsA">http://www.apple.com/uk/ipod/colorswitch.jsA</a><!-- m --> PHP version...
<!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=17509Since">http://forums.webdeveloper.com/showthre ... 17509Since</a><!-- m --> we've moved onto server side here's an ASP version. It's up and running on one of my web-sites right now, but all of the style sheets are the same so you don't notice much. I have stripped the script down to just two possible styles but it's very easy to expand.See my customize wiget...