Ext.onReady(function() {
Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'qtip';
var cookiesArr = document.cookie.split(";");
var cssName = "";
//alert(cookiesArr.length)
for(var i=0; i<cookiesArr.length; i++){
var arr = cookiesArr[i].split("=");
if(arr[0] == "css"){
cssName = arr[1];
break;
}
};
//alert('當前主題'+cssName)
if(cssName != ""){
Ext.util.CSS.swapStyleSheet('theme', "../ext-3.4.0/resources/css/" + cssName + ".css");
}else{
Ext.util.CSS.swapStyleSheet('theme', "../ext-3.4.0/resources/css/ext-all.css");
}
var btnStyle = new Ext.Button({
icon:'../images/color_wheel.png',
text : "面板風格",
pressed : false,
menu : [{
text : "默認風格",
icon : '../images/vista.jpg',
handler : function() {
changeSkin('ext-all');
}
}, {
text : "銀白風格",
icon : '../images/gray.jpg',
handler : function() {
changeSkin('xtheme-gray');
}
}, {
text : "深藍風格",
icon : '../images/slate.jpg',
handler : function() {
changeSkin('xtheme-slate');
}
}, {
text : "紫色風格",
icon : '../images/purple.jpg',
handler : function() {
changeSkin('xtheme-purple');
}
}, {
text : "綠色風格",
icon : '../images/green.jpg',
handler : function() {
changeSkin('xtheme-olive');
}
}, {
text : "灰色風格",
icon : '../images/darkgray.jpg',
handler : function() {
changeSkin('xtheme-darkgray');
}
}, {
text : "紫色風格",
Extjs导航页(前端)
最新推荐文章于 2024-04-26 16:47:03 发布