2007-04-11
Ext - heart class Element
关键字: Extxml 代码
- <html>
- <head>
- <title>Ext lession 1 - heat class Elementtitle>
- <link rel="stylesheet" type="text/css" href="http://www.agideo.com/lib/ext-1.0-alpha3/resources/css/ext-all.css"/>
- <link rel="stylesheet" type="text/css" href="http://www.agideo.com/lib/ext-1.0-alpha3/resources/css/ytheme-aero.css" />
- <script type="text/javascript" src="http://www.agideo.com/lib/ext-1.0-alpha3/yui-utilities.js">script>
- <script type="text/javascript" src="http://www.agideo.com/lib/ext-1.0-alpha3/ext-yui-adapter.js">script>
- <script type="text/javascript" src="http://www.agideo.com/lib/ext-1.0-alpha3/ext-all.js">script>
- <style>
- .red{
- background-color : red;
- }
- style>
- <script>
- function f1()
- {
- var myDiv = Ext.get('myDiv');
- myDiv.highlight(); // The element's background will highlight to yellow then fade back
- }
- function f2()
- {
- var myDiv = Ext.get('myDiv');
- myDiv.addClass('red'); // Add a custom CSS class (defined in ExtStart.css)
- }
- function f3()
- {
- var myDiv = Ext.get('myDiv');
- myDiv.center(); // Center the element in the viewport
- }
- function f4()
- {
- var myDiv = Ext.get('myDiv');
- myDiv.setOpacity(.25); // Make the element partially-transparent
- }
- script>
- head>
- <body>
- <div id='myDiv'>
- Lession 1
- div>
- <input type="button" value="highlight" name="btn" onclick="f1();" />
- <input type="button" value="addClass" name="btn" onclick="f2();" />
- <input type="button" value="center" name="btn" onclick="f3();" />
- <input type="button" value="setOpacity" name="btn" onclick="f4();" />
- body>
- html>
发表评论
- 浏览: 9968 次
- 性别:

- 来自: 温州

- 详细资料
搜索本博客
我的相册
mary.JPG
共 27 张
共 27 张
最近加入圈子
链接
最新评论
-
Ruby Http Client
really?
-- by jerry -
ruby 又一BUG 折磨了我很 ...
放这里记一下sudo apt-get install openssh-clien ...
-- by open2ye -
rails 的测试的 bug 当你 ...
还有一个可能造成这个问题的原因是rails test的transactional ...
-- by iamawalrus -
rails 的测试的 bug 当你 ...
gigix 写道 干嘛不放在before_save呢? 例如Part 在 be ...
-- by open2ye -
rails 的测试的 bug 当你 ...
iamawalrus 写道 检查test环境的db以及对应的table是否和de ...
-- by open2ye






评论排行榜