a site that allows you to pick the .css file

This is a discussion on a site that allows you to pick the .css file within the A Brief History of Cprogramming.com forums, part of the Community Boards category; does anyone know a site (or the javascript code) where you click a link and it changes the current css, ...

  1. #1
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    Posts
    116

    a site that allows you to pick the .css file

    does anyone know a site (or the javascript code) where you click a link and it changes the current css, so you can have some control over what the site looks like? i dont know enough about css to do it, but i know it can be done.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    nehe.gamedev.net
    Away.

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    AFAIK that requires server-side scripting.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  4. #4
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Doubt it'll work with JavaScript (as the 'corrrect' CSS file to send would not be known when the page is initially being rendered). You could definitely do it with Perl or PHP though.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  5. #5
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Use Opera. You can supply your own CSS styles to override the page's styles.

  6. #6
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    flashdaddee allows you to choose between different ones for its forums with a pull-down menu

  7. #7
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    Posts
    116
    this is from flashadee or w/e, it requires no server side scripting:
    Code:
    <select name="styleid" onchange="window.location=('index.php?styleid='+this.options[this.selectedIndex].value)">
    <option value="1" selected>-KENdo Nagasaki- (42 users)</option><option value="2" >Gray (26 users)</option><option value="3" >Basic Bassy (10 users)</option><option value="4" >face_master special (6 users)</option><option value="5" >stealth (4 users)</option><option value="6" >Sentaku Silk (2 users)</option>
    </select>
    im sure there is a way where it loads multiple style sheets at the beginning of the page, but only has one active, then some javascript sets the active link. but the above method would work, although it requires a lot more pages than without choosing. not only that but it would be impratical for doing a whole site, since you're looking at having 5-6 times as many pages to make. and you really couldnt have more than a few styles.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  8. #8
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    >>index.php?styleid='+this.options[this.selectedIndex].value

    That's just passing parameters to a server-side script.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  9. #9
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    Posts
    116
    yeah but you do something like this
    Code:
    window.location=('"page1"+this.options[this.selectedIndex].value+".html"')
    or something to that effect, i dont know much javascript. but if you picked theme "blue" it would take you to page1blue.html, and if you picked green it would take you to page1green.html.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  10. #10
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    What was the point of this thread again?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM
  3. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 09:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21