I want to make a theme Switcher.
My idea is to make a div class with many anchor elements (the themes) containing a data-theme attribute which contains different swatches (a,b,c,d,e). I want to replace the data-theme attribute of every page with the data-theme selected when the user clicks a link. How can I make that using JavaScript?
Like I do green says jquerymobile has the theme roller working.
But I think that a change isn’t necessary because you can set a swatch let’s say
aand then in every theme change you only have to replace the css, so this way it’s not necessary to modify the HTML DOM…Good Luck!