Nov 11
I made small css based locale switcher with theme. You can see the demo here. In this example, common.css has generic style definations for page elements. gray.css has india locale and gray theme style definations. yellow.css has US locale and yellow theme style definations. Below 3 lines of javascript code will switch locale as well as theme.
<script> function changeTheme(){ var obj = document.getElementById("themeContainer"); obj.className = (obj.className=='gray')?'yellow':'gray'; } </script>
you can download this example here.
Apr 21, 2010 at 4:44 AM this is good. how about the color? does it have to be codes? won't there be any conflict if I write what color I want?
Apr 21, 2010 at 5:16 AM @thor, I am just changing the classnames using javascript. you can define colors in gray.css or in yellow.css