Option, to select different type of css?

So basically there is a option to select a css stylesheet, which to use for the website. It usually is located in side of the homepage, and it can be minimized and maximized. It is with transparent background and some color chart, also with links to website with new design. Is there any plugins that would do it for me automatically, or do I need to write it myself?

Answers


I'm not sure if there's some kind of plugin for this, but here's an idea. You can include all the stylesheets, and enable only one.

Here's a way to enable/disable a stylesheet that works in all browsers (taken from this answer):

var styleSheets = document.styleSheets;
var href = 'http://yoursite.com/foo/bar/baz.css';
for (var i = 0; i < styleSheets.length; i++) {
    if (styleSheets[i].href == href) {
        styleSheets[i].disabled = true;
        break;
    }
}

Need Your Help

Setting CSS li counter value through javascript

javascript jquery html css css3

I'm using the rectangle OL style from http://red-team-design.com/css3-ordered-list-styles/ and it works perfectly, except on one page I've got.

using custom user model with django-allauth gives error Cannot resolve keyword 'username' into field. Choices are: activityhistory, app, ....,

django django-allauth

I was trying to integrate django-allauth, and I tried to use custom user model. As stated here, I created my model