Results 1 to 4 of 4

Thread: Changing CSS files in real time - Please help

  1. #1
    Join Date
    Aug 2007
    Location
    MO USA
    Posts
    106
    Thanks
    37
    Thanked 0 Times in 0 Posts

    Default Changing CSS files in real time - Please help

    I have a css based website and have 4 different color schemes (css files) for it. I am planning on having 4 colored submit buttons, if the user clicks on a color, the corresponding stylesheet (external css file) should load. I've seen this done somewhere but i don't remember where i saw it.

    Would be great if you can let me know how to do this or post a link to a tutorial or resource.

    thanks a lot.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    This site might help you:
    http://www.csszengarden.com/

  3. The Following User Says Thank You to Snookerman For This Useful Post:

    me_myself (11-12-2008)

  4. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    CSS Zen Garden does dynamically load a CSS file, but it's based on the URL variable.

    If you want to do it anonymously (without something in the URL), read this article on A List Apart.

  5. The Following User Says Thank You to Medyman For This Useful Post:

    me_myself (11-12-2008)

  6. #4
    Join Date
    Aug 2007
    Location
    MO USA
    Posts
    106
    Thanks
    37
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot for the links guys, the list apart one is perfect for me.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •