Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS css style picker ?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42906

    hello everyone

    can you tell me how could I code a script or any other way that let the visitor choose his css style

    for example if he click a blue button the whole page will use a css that specify the blue color for elements etc.

    #125576
    Paulie_D
    Member

    There are quite a few…

    Try googling jQuery CSS Switcher

    #125583
    tomrogers123
    Member

    You can make your own easily enough. All you need to do is attach an `id` to the link element and switch the `href` to which it links to the location of a different file.In terms of getting the values to switch it to, you could create a `select` tag with the value for each `option` defined as a different page. An example of this form could be:

    `




    `

    Then you can latch onto what has been selected:

    $(‘#style-selector”).on(‘change’, function() {
    $(‘link’).attr(‘href’, $(“style-selector”).val() );
    });

    Nice clean solution that you can expand as needed without having a bunch of features you may not need!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.