captain 发表于 2013-2-5 02:38:57

extjs主题切换(switch themes)

http://extjs.com/forum/showthread.php?t=2420&highlight=theme

Ext.theme = function() {    return{      apply:function(A) {            A = A.id ? A.id : A;            Cookies.set("xrinsurtheme", A);            Ext.util.CSS.swapStyleSheet("theme", getSitePath() + "/extjs/resources/css/ytheme-" + A + ".css");            Ext.util.CSS.swapStyleSheet("theme", getSitePath() + "/extjs/resources/css/xtheme-" + A + ".css");      }    }} ();var path = getSitePath();function getSitePath() {    var B = document.location.protocol, C = document.location.host, D = document.location.pathname, A = document.location.search, E = B + "//" + C + "/" + (D.split("/"));    return E;}function setSitePath(A) {    return path + "/" + A;}

官方提供的主题:http://extjs.com/learn/Ext_Extensions#Ext_2.0_Themes
页: [1]
查看完整版本: extjs主题切换(switch themes)