CSS stylesheet selection

Discussion in 'Web Design and Development' started by Macnoviz, Apr 23, 2007.

  1. Macnoviz macrumors 65816

    Macnoviz

    Joined:
    Jan 10, 2006
    Location:
    Roeselare, Belgium
    #1
    Hi, I recently switched from iWeb to dreamweaver, and I have completed my first site in XHTML and CSS, but is it possible to let users choose a certain stylesheet for your website?
    In this case I have several .css files that have different colour schemes. I've seen this feature in phpBB, where a user can choose a style to view the forum from a drop-down list, but is it hard to incorporate in a website?
    I appreciate any help.
     
  2. rogersmj macrumors 68020

    rogersmj

    Joined:
    Sep 10, 2006
    Location:
    Indianapolis, IN
    #2
    You might want to search Google for something like "change CSS stylesheet with javascript". Here's one that has a lot of good information and even includes code at the end that you can download and fit into your site.
     
  3. jng macrumors 65816

    jng

    Joined:
    Apr 6, 2007
    Location:
    Germany
    #3
  4. Macnoviz thread starter macrumors 65816

    Macnoviz

    Joined:
    Jan 10, 2006
    Location:
    Roeselare, Belgium
    #4
    Thanks, it was even simpler than I had hoped for.
     
  5. hopejr macrumors 6502

    Joined:
    Nov 10, 2005
    Location:
    New South Wales, Australia
    #5
    The A List Apart example is good. I used that on my old website which was entirely client side (i.e. no PHP or whatever in the backend). You can switch theme without reloading. It also comes up in the Page Style menu in Firefox.
     

Share This Page