Closed Thread
Results 1 to 6 of 6

Thread: Css changer on page. Howto?

  1. #1
    Junior Member Oipo is an unknown quantity at this point
    Join Date
    Oct 2001
    Location
    Belgium
    Posts
    4

    Sad Css changer on page. Howto?

    I would like to add the possibility that users can choose between different styles CSS on the webpage. How can I do this. What script is necessary?
    If the question has already been answered please point my in the right direction because I search for it without success.
    :]signed on the dotted line[:

  2. #2
    Doctor Hexagon Canuckkev is just really niceCanuckkev is just really niceCanuckkev is just really niceCanuckkev is just really nice Canuckkev's Avatar
    Join Date
    Dec 2000
    Location
    Calgary, Canada
    Posts
    3,582
    Hmm....very good question. I suppose with php dynamic pages, it would be possible. And maybe with Java Script, but not just html. Unless, you just copied one set of your sites pages to a different folder, and link to the same name css file, just at the top of the new folder. But, seems pointless. If you use php already, it would be fairly easy. Just get it to set a cookie, then load that cookie, and if the cookie=="red" say, include "red.css", else include "blue.css". Very simple. But, without php, Javascript could do it. Basically same code in Javascript. But, without JScript, no CSS would load.
    How-to-spell-ridiculous.com
    pinkypoint.com - The hand gesture for the 21st century.

  3. #3
    NLC Dusty is an unknown quantity at this point Dusty's Avatar
    Join Date
    Oct 2000
    Posts
    2,953

    Re: Css changer on page. Howto?

    I would like to add the possibility that users can choose between different styles CSS on the webpage. How can I do this. What script is necessary?
    It's built into Netscape 6, no script is necessary. For pages with multiple stylesheets, the default will show-up on first view and then you can select any alternatives available by opening the "View" menu, going to "Use Stylesheets", and then select the name of the stylesheet from the submenu.
    I think I may have been here before... a long, long time ago... 599699 Unread Posts, you say?

    Ah, I found my old avatar. The hypnotic evil duck.
    It was 2002. Duck avatars were the style at the time.
    Long and fascinating story there. I'd tell you if I remembered it.

  4. #4
    Junior Member Oipo is an unknown quantity at this point
    Join Date
    Oct 2001
    Location
    Belgium
    Posts
    4

    Arrow

    I would like to make something like Stylebank. Not that much choices only four or five.
    Because it's for a school the pages must have some extra's to keep the attention of the kids.
    :]signed on the dotted line[:

  5. #5
    Pro Member dony is an unknown quantity at this point
    Join Date
    Mar 2001
    Location
    kyrgyzstan
    Posts
    340
    i think you can do with dhtml.
    go to dynamicdrive.com
    -///-///-///-///-

  6. #6
    Junior Member Oipo is an unknown quantity at this point
    Join Date
    Oct 2001
    Location
    Belgium
    Posts
    4

    Smile

    i think you can do with dhtml.
    go to dynamicdrive.com


    Found a solution at irt.org. Found it while looking for Dynamic StyleSheets.

    Greetings and thanks for the advices.
    :]signed on the dotted line[:

Closed Thread

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