How should it work if I want a page to have a theme-roller (more or less like the jQuery themeroller

Posted by DanC on Stack Overflow See other posts from Stack Overflow or by DanC
Published on 2010-06-07T18:05:28Z Indexed on 2010/06/07 18:12 UTC
Read the original article Hit count: 272

Filed under:
|
|

The basic idea is to create a page that gives the user the ability to choose a skin or theme from a menu. When the user selects the desired skin/theme, it should be applied to the page, just like the jquery ui theme roller page.

So, to be more precise, what I am trying to know is how to apply dynamically the style to a page - how to load the css and so forth. On the jquery ui theme roller, is there any javascript triggered after the new set of styles is loaded? (for js positioning or sizing?)

(The answer may be simple as "just create a new style element and set its src"...)

Just to be clear, I don't need the option to let users customize the UI, I want them just to be able to pick from a few pre set styles.

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css