#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    32
    Rep Power
    12

    Unhappy Calling different CSS from a single page...


    Hi all:


    Here's what I'm trying to do: I have more than one CSS all with different styles, I'd like to have one page call and apply those different CSS when users chooses to change some kind of theme mode from say a drop-down menu on that same page. (as in i don't want to bring users to a different page with just a different style when they change the 'theme mode') My question is, is there anyway this could be done WITHOUT using cookies?? (coz i'm really bad with cookies... )

    Any help would be GREATLY APPRECIATED!!

    HappyTomato
    The probability of someone watching you is proportional to the stupidity of your action
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    May 2003
    Posts
    1,014
    Rep Power
    14
    If you want to apply a stylesheet to more than one page, I think you need to use cookies.

    Check out this thread:
    Javascript, cookies & CSS

    Jeroen
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    152
    Rep Power
    11
    For more in depth instructions:

    http://www.alistapart.com/stories/alternate/

    there's a php switcher on that site too, if you'd prefer that.

IMN logo majestic logo threadwatch logo seochat tools logo