1,主题

打开http://jqueryui.com/themeroller/

如下图:Gallery选项卡--可选定主题预览,下载或进入编辑

image

如下图,Roll Your Own选项卡---调整主题,然后下载

image

2,应用

1,jQuery UI CSS Framework:Theming API

 

3,主题切换

1,themeswitcher官网上找不到??http://jqueryui.com/themeroller/themeswitchertool???

对应的API: http://docs.jquery.com/UI/Theming/ThemeSwitcher

另外在网络上找到的该plugin的代码(http://blog.rbe.homeip.net/posts/jquery-themeswitcher)

Code

 

2,http://jasonlau.biz/home/jquery/jlthemeswitcher-for-jquery

(TODO:)

 

3,最直接的方法,通过替换CSS的href,如下

var setTheme = function(themeName){
$("head").find("link[href$='style.css']").attr("href", themeName);}
					
				}

(占位,未完待续!!)

posted on 2013-02-01 18:32  tchoyi  阅读(965)  评论(0编辑  收藏  举报
我要啦免费统计