<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Leo の Blog &#187; JavaScript</title>
	<atom:link href="http://blog.openider.com/archives/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.openider.com</link>
	<description>Where there is a will there is a way! Trust youself can do it!</description>
	<lastBuildDate>Thu, 27 Aug 2009 10:42:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Prototype 1.6 资料打包</title>
		<link>http://blog.openider.com/archives/135</link>
		<comments>http://blog.openider.com/archives/135#comments</comments>
		<pubDate>Tue, 23 Jun 2009 08:56:14 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.mmclub.net/?p=135</guid>
		<description><![CDATA[找了下 prototype 的资料. 打个包放在这里. 方便到拿去. 包里文件  prototype 1.6 中文, 英文文档. CHM 格式. 还有 1.60 的API, PDF格式. 还要一个 cheatsheet 也是 1.6 版本到. 资料应该比较齐全了. 剩下到花点时间去看吧.
下载地址: 点击这里下载
]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/135/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript 常用函数封装.</title>
		<link>http://blog.openider.com/archives/132</link>
		<comments>http://blog.openider.com/archives/132#comments</comments>
		<pubDate>Tue, 23 Jun 2009 07:45:46 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.mmclub.net/?p=132</guid>
		<description><![CDATA[近来工作任务涉及到 JavaScript 方面了. 顺手整理了一下 常用函数, 帖出来方便使用.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/**
 * Mm Javascript code
 * 未完待续...
 *
 * @author: Guya
 * @email: camworkster@gmail.com
 * @version: 1.0 beta
 */
&#160;
//使用对象
var MmJs = &#123;
version: '1.0 beta',
author: 'Guya'
&#125;;
&#160;
/**
 * 浏览器判断. COPY jQuery
 *
 */
var userAgent = navigator.userAgent.toLowerCase&#40;&#41;;
MmJs.browser = &#123;
	version: &#40;userAgent.match&#40; /.+(?:rv&#124;it&#124;ra&#124;ie)[\/: ]([\d.]+)/ &#41; &#124;&#124; &#91;0,'0'&#93;&#41;&#91;1&#93;,
	safari: /webkit/.test&#40; userAgent &#41;,
	opera: /opera/.test&#40; userAgent &#41;,
	msie: /msie/.test&#40; userAgent [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/132/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript代码分享: 动态载入CSS, 或JavaScript 脚本文件</title>
		<link>http://blog.openider.com/archives/9</link>
		<comments>http://blog.openider.com/archives/9#comments</comments>
		<pubDate>Sat, 20 Jun 2009 15:23:24 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.mm-life.com/?p=9</guid>
		<description><![CDATA[玩玩动态载入吧, 记得 jQuery 里有个方法 jQuery.getScript(); 这个后面好像还带一个回调函数, 功能是很好, 很强大. 不过载入CSS的时候就没有提供类似的方法. 自己写了两个函数. 玩玩很有意思呢.
不过注意的是玩动态载入的话, 前提是你的网络带宽和服务器速度都不错, 如果网络太烂, 页面就乱糟糟了呢.
先来载入CSS的函数:

/**
 * 动态增加 CSS 样式表文件. 不会重复加载
 * 但在别处使用这个函数，这个js要先加载
 *
 * @param: string cssUri 载入的 CSS 样式表定义脚本路径.
 *
 * @author: Cai.Aimin
 * @email: cam_work@163.com
 * @since: 2008-03-05
 *
 * @return void
 */
function loadCss&#40;cssUri&#41; &#123;
    if&#40;!cssUri&#41; return;
    var [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/9/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript代码分享. window.onload()</title>
		<link>http://blog.openider.com/archives/7</link>
		<comments>http://blog.openider.com/archives/7#comments</comments>
		<pubDate>Sat, 20 Jun 2009 10:30:21 +0000</pubDate>
		<dc:creator>Guya</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.mm-life.com/?p=7</guid>
		<description><![CDATA[虽然使用 jQuery 可以非常方便的操作 DOM 树, 自己写一些代码辅助也是非常有意思的事. 也很有必要哦. 分享一下文档载入时的这个window.onload事件处理方法. 让它支持多事件.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** 
 * 这个函数可以代替window.onload = function() {} 
 * 可以不受 window.onload 只能在一处使用的限制 
 * 但在别处使用这个函数，这个js要先加载 
 * 
 * @author: Cai.Aimin 
 * @email: cam_work@163.com 
 * @since: 2008-03-04 
 * @return void 
 */ 
function addLoadEvent&#40;func&#41; &#123; 
        var [...]]]></description>
		<wfw:commentRss>http://blog.openider.com/archives/7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
