让ExtJs 2.02的例子也支持换肤

news/2024/7/4 1:39:59 标签: extjs, class, ext, html, 工具, div
html" title=class>class="baidu_pl"> <div id="article_content" html" title=class>class="article_content clearfix"> <div id="content_views" html" title=class>class="htmledit_views"> <div html" title=class>class="content">

今天在论坛看到有朋友问我,网站上的换肤功能是如何做的。其实换肤的方法在下载回来的例子中是已经存在的了。但是不知道为什么该功能在html" title=ext>ext 2.02下并不可用。
要加上换肤功能主要有两个步聚:
1、在html页面(每一个例子)的body中间加上以下代码(换肤工具条)

<div html" title=class>class="dp-highlighter"> <div html" title=class>class="bar"> <div html" title=class>class="tools"> view plain copy to clipboard print ? div> div>
    html" title=class>class="dp-c" start="1">
  1. html" title=class>class="alt"><div id=html" title=class>class="string">"lib-bar" html" title=class>class="keyword">html" title=class>class=html" title=class>class="string">"x-toolbar" style=html" title=class>class="string">"border-width:0 1px 1px; thtml" title=ext>ext-align:right; width:150px; position:absolute; right:0px;left:auto; top:2px; "><div id=html" title=class>class="string">"lib-bar-inner">  
  2. html" title=class>class=""><span>Theme:</span>  
  3. html" title=class>class="alt"><select id=html" title=class>class="string">"html" title=ext>exttheme">  
  4. html" title=class>class=""><option value=html" title=class>class="string">"default">Ext Blue</option>  
  5. html" title=class>class="alt"><option value=html" title=class>class="string">"gray">Gray Theme</option>  
  6. html" title=class>class=""><option value=html" title=class>class="string">"black">Black Theme</option>  
  7. html" title=class>class="alt"><option value=html" title=class>class="string">"green">Green Theme</option>  
  8. html" title=class>class=""><option value=html" title=class>class="string">"calista">Calista Theme</option>  
  9. html" title=class>class="alt"><option value=html" title=class>class="string">"darkgray">Darkgray Theme</option>  
  10. html" title=class>class=""><option value=html" title=class>class="string">"indigo">Indigo Theme</option>  
  11. html" title=class>class="alt"><option value=html" title=class>class="string">"midnight">Midnight Theme</option>  
  12. html" title=class>class=""><option value=html" title=class>class="string">"olive">Olive Theme</option>  
  13. html" title=class>class="alt"><option value=html" title=class>class="string">"pink">Pink Theme</option>  
  14. html" title=class>class=""><option value=html" title=class>class="string">"purple">Purple Theme</option>  
  15. html" title=class>class="alt"><option value=html" title=class>class="string">"slate">Slate Theme</option>  
  16. html" title=class>class=""><option value=html" title=class>class="string">"slickness">Slickness Theme</option>  
  17. html" title=class>class="alt"></select></div></div>  
div>

2、更改 ./examples/examples.js 文件中的 40行

html" title=class>class="bb-code">Ext.getBody().addClass('x-'+theme);
改为
html" title=class>class="bb-code">Ext.util.CSS.swapStyleSheet("theme", "../../resources/css/xtheme-" + theme + ".css");

完成这两步后就大功告成了!

div>  div> div> <div id="treeSkill">div>

http://www.niftyadmin.cn/n/1412660.html

相关文章

三连四断

1.TCP连接的建立 (1&#xff09;首先是服务器初始化的过程&#xff0c;从CLOSED&#xff08;关闭&#xff09;状态开始通过顺序调用SOCKET、BIND、LISTEN和ACCEPT原语创建Socket套接字&#xff0c;进入LISTEN&#xff08;监听&#xff09;状态&#xff0c;等待客户端的TCP传输连…

读取模版并生成html文件

C# code///<summary>///读取模版并生成html文件 ///</summary>///<param name"HtmlPath">所要写文件的地址</param>///<param name"TemplateFile">模板地址</param>///<param name"sItem">所要替换…

操作系统第三章:存储器管理笔记

内容提要  存储管理基础  页式内存管理  段式内存管理  虚拟存储管理  存储管理实例 存储管理基础 概念辨析 基础知识 已初始化的全局变量放于data段&#xff0c;未初始化的全局变量放于bss段test段为代码段text和data段都在可执行文件中&#xff0c;由系统从可执…

pc打开手机站提示切换为手机屏幕

.turn {position: absolute;width: 100%;height: 100%;left: 0;top: 0;background: url(../images.png) center center no-repeat #000;background-size: contain;display: none;z-index: 505; }media ( orientation: landscape ) {.turn {display: block;} } <!--如果是横屏…

NetAdvantage For Asp.net 2008 官方Demo网址

经常使用该组件的人可以查阅一下&#xff0c;不过此页面打开很慢 http://samples.infragistics.com/2008.2/webfeaturebrowser/default.htm

python菜鸟基础知识(二)

3.2 字符串格式化 a "------------- 我爱涛 -------------" b "name:" c "age:" d "job:" e "-------------- 结束 -------------" name input("name") age input("age") ob input("job&q…

android emulator虚拟设备分析第一篇之battery

一、概述 本文使用的android版本是5.1.0_r1&#xff0c;goldfish内核版本是3.4&#xff0c;android镜像是x86架构的。本文以battery为例&#xff0c;完整地介绍了虚拟设备的实现和使用。 为什么android emulator需要虚拟设备&#xff0c;简单来说就是android系统需要使用&#…

操作系统第四章第一节:进程与线程

概念辨析&#xff1a;并发与并行 并发Concurrent&#xff1a;设有两个活动a1和a2&#xff0c;如果在某一指定的时间t&#xff0c;无论a1和a2是在同一处理机上还是在不同的处理机上执行&#xff0c;只要a1和a2都处在各自的起点和终点之间的某一处&#xff0c;则称a1和a2是并发执…