<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>koyoz's blog</title>
		<link>http://koyoz.com/blog/</link>
		<description>天高云淡，让心情旅行。</description>
		<copyright>Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved.</copyright>
		<generator>SaBlog-X Version 1.6 Build 20080806</generator>
		<lastBuildDate>Wed, 08 Sep 2010 09:22:17 +0000</lastBuildDate>
		<ttl>30</ttl>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=277</guid>
			<title>不用jQuery也来做动画</title>
			<author>koyoz</author>
			<description><![CDATA[<p><a target="_blank" href="http://jquery.com/">jQuery</a> 框架用的人越来越多了, 无论是性能还是功能强大都不用多说.</p>
<p>不过随着新版本的升级, 体积也慢慢变大了.</p>
<p><strong>24KB</strong>, Minified and Gzipped <strong>155KB</strong>, Uncompressed Code</p>
<p>压缩并gzip输出24K, 也不小了.</p>
<p>如果页面上一个简单的效果,一个简单的动画就没必要载入这么大的库.</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=277" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=277</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2010-03-30 15:42</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=268</guid>
			<title>IE6下通过a标签点击切换图片的问题</title>
			<author>koyoz</author>
			<description><![CDATA[<p>IE6已经让人恶心很久了, Google旗下Youtube决定在3月13日起停止对IE6的支持. 但愿能加速IE6更换的速度.</p>
<p>不过, 国内大部分用户还是在用IE6.</p>
<p>IE6下通过a标签的onclick事件切换某个图片时, 有可能出现图片无法加载问题, httpwatch抓取表现结果是abort.</p>
<p>测试了一下,找到了解决办法.</p>
<p>a标签事件一般情况是这样写的, 也可能是绑定事件, 解决方式一样:</p>
<p><font color="#ff0000">1. &lt;a href=&quot;javascript://&quot; onclick=&quot;dosomething()&quot;&gt;a1&lt;/a&gt;</font></p>
<p><font color="#ff0000">2. &lt;a href=&quot;javascript:void(0)&quot; onclick=&quot;dosomething()&quot;&gt;a2&lt;/a&gt;</font></p>
<p><font color="#339966"><strong>3. &lt;a href=&quot;###&quot; onclick=&quot;dosomething()&quot;&gt;a3&lt;/a&gt;</strong></font></p>
<p>第三种方法<font color="#339966"><strong>dosomething()</strong><font color="#000000">中切换图片完全没有问题, 但是</font><strong>href=&quot;###&quot;</strong> <font color="#000000" size="+0">却带来了另一个问题, 占用了锚点,页面URL也不美观.</font></font></p>
<p><font size="3">第1,2种方式虽然没有上面的问题, 但会引发IE6的奇怪bug, <font color="#ff0000">dosomething()</font><font color="#000000">中</font>图片无法加载.</font></p>
<p><font size="3">只要在<font color="#000000"><font color="#ff0000">dosomething();</font>后面增加一个<font color="#ff0000">return false;</font>就可以解决了.</font></font></p>
<p><font size="3">如果是绑定事件, 同样在function最后增加<font color="#ff0000">return false;</font><font color="#000000">就行.</font></font></p>
<p>&nbsp;</p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=268</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2010-02-24 22:57</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=260</guid>
			<title>javascript取消文本选定</title>
			<author>koyoz</author>
			<description><![CDATA[<p>最近在做拖动布局. 发现有文本选定的时候, 进行拖动很不好看.</p>
<p>javascript选定文本取消, 能兼容所有主流浏览器了:<br />
<font face="Consolas"><br />
<font face="Comic Sans MS"><font color="#0000ff">if </font><font color="#000000">(</font><font color="#ff0000">document</font><font color="#000000">.</font><font color="#ff0000">selection</font><font color="#000000">) {</font><br />
<font color="#ff0000">document</font><font color="#000000">.</font><font color="#ff0000">selection</font><font color="#000000">.</font><font color="#004080">empty</font><font color="#000000">();</font><br />
<font color="#000000">} </font><font color="#0000ff">else if </font><font color="#000000">(</font><font color="#ff0000">window</font><font color="#000000">.</font><font color="#004080">getSelection</font><font color="#000000">) {</font><br />
<font color="#ff0000">window</font><font color="#000000">.</font><font color="#004080">getSelection</font><font color="#000000">().removeAllRanges();</font><br />
<font color="#000000">}</font></font><br />
</font></p>
<p><font face="Consolas">对于文本框(input,textarea)中的文本选定取消, 这种方法会有一些问题.</font></p>
<p><font face="Consolas">不过也有办法, 记录下文本框中的value,再清空,再重新赋值. 方法有点搓, 不过能兼容所有浏览器.</font>
<p>&nbsp;</p>
</p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=260</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-12-30 11:10</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=259</guid>
			<title>比较有效的javascript无提示关闭窗口</title>
			<author>koyoz</author>
			<description><![CDATA[<pre><font face="Comic Sans MS">比较有效的javascript无提示关闭窗口. <font color="#0000ff">_self</font>也可以换成<font color="#0000ff">_top</font>/<font color="#0000ff">_parent</font>之类的用于关闭顶层/父级窗口.</font></pre>
<pre><font face="Comic Sans MS">一般浏览器中都OK的.  </font><font face="Comic Sans MS">如果有更好的方法, 不吝赐教.</font></pre>
<pre>&nbsp;</pre>
<pre><font face="Comic Sans MS"><font color="#0000ff">&lt;script </font><font color="#ff0000">type</font><font color="#0000ff">=</font><font color="#ff00ff">&quot;text/javascript&quot;</font><font color="#0000ff">&gt;</font>
<font color="#ff0000">window</font><font color="#800000">.</font><font color="#008080">opener </font><font color="#800000">= </font><font color="#0000ff">null</font><font color="#800000">;</font>
<font color="#ff0000">window</font><font color="#800000">.</font><font color="#004080">open</font><font color="#800000">(</font><font color="#ff00ff">''</font><font color="#800000">, </font><font color="#ff00ff">'_self'</font><font color="#800000">, </font><font color="#ff00ff">''</font><font color="#800000">); </font>
<font color="#ff0000">window</font><font color="#800000">.</font><font color="#004080">close</font><font color="#800000">();</font>
<font color="#0000ff">&lt;/script&gt;</font>
</font></pre>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=259</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-12-23 14:02</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=257</guid>
			<title>javascript中的var_dump</title>
			<author>koyoz</author>
			<description><![CDATA[<p><a target="_blank" href="http://www.php.net/">php</a>中的<a target="_blank" href="http://cn.php.net/var_dump">var_dump</a>很方便.</p>
<p><font color="#003366"><span class="type">void</span> <span class="methodname"><strong><strong>var_dump</strong></strong></span> ( <span class="methodparam"><span class="type">mixed</span> <tt class="parameter">$expression</tt></span> [, <span class="methodparam"><span class="type">mixed</span> <tt class="parameter">$expression</tt></span> [, <span class="methodparam"><tt class="parameter">$...</tt></span> ]] )</font></p>
<p class="simpara">此函数显示关于一个或多个表达式的结构信息，包括表达式的类型与值。数组将递归展开值，通过缩进显示其结构。</p>
<p class="simpara">配合上<a target="_blank" href="http://xdebug.org/index.php">xdebug</a>&nbsp;(<a target="_blank" href="http://xdebug.org/docs/display">Variable Display Features</a>), 还能够根据不同变量类型使用不同颜色区分.</p>
<p class="simpara">&nbsp;</p>
<p class="simpara">现在javascript也能做到类似php中var_dump的效果了. <a target="_blank" href="http://www.netgrow.com.au/files/javascript_dump.cfm">Shuns</a>封装了一个Dump函数:</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=257" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=257</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-12-17 15:59</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=250</guid>
			<title>JavaScript是否可多线程 — 深入理解JavaScript定时机制</title>
			<author>koyoz</author>
			<description><![CDATA[<p><strong>容易欺骗别人感情的JavaScript定时器</strong></p>
<p>JavaScript的setTimeout与setInterval是两个很容易欺骗别人感情的方法,因为我们开始常常以为调用了就会按既定的方式执行, 我想不少人都深有同感, 例如</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=250" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=250</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-12-01 13:20</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=247</guid>
			<title>jQuery图形化设计工具-IxEdit</title>
			<author>koyoz</author>
			<description><![CDATA[<p><a target="_blank" closure_hashcode_j5ed8z="2965" href="http://www.ixedit.com/">IxEdit </a>是一款图形化的jQuery所见即所得设计工具. 只要简单的设定参数就可以方便的进行各种DOM操作, 事件绑定, 动画设置等等. 设置页面完成之后, 点击&quot;Deploy&quot;就可以生成相应的javascript代码了. 把代码贴到页面中, 复杂的编码工作就简单完成了.</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=247" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=247</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-11-26 10:31</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=244</guid>
			<title>很有创意的滚动条时钟动画</title>
			<author>koyoz</author>
			<description><![CDATA[<p>一款很有创意的时钟js动画.</p>
<p>是利用系统滚动条来构成一个 时:分:秒 的盘. 再利用滚动条的长度变化做过渡动画.</p>
<p>是基于<a target="_blank" href="http://mootools.net/">MooTools</a>来做的. 效果比较平滑.</p>
<p>看图:&nbsp;<a href="http://koyoz.com/blog/attachment.php?id=193" target="_blank"><img src="http://koyoz.com/blog/attachments//date_200911/ce1b4620d598c841000704f5fed03229.jpg" border="0" alt="大小: 13 K&#13;尺寸: 500 x 185&#13;浏览: 14 次&#13;点击打开新窗口浏览全图" width="500" height="185" /></a></p>
<p>本站演示地址: <a target="_blank" href="http://koyoz.com/demo/html/clock/clock.html">http://koyoz.com/demo/html/clock/clock.html</a></p>
<p>转自: <a target="_blank" href="http://toki-woki.net/p/scroll-clock/">http://toki-woki.net/p/scroll-clock/</a>&nbsp;(需要翻墙)</p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=244</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-11-23 13:15</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=225</guid>
			<title>用onpropertychange,oninput事件解决onchange事件的不足</title>
			<author>koyoz</author>
			<description><![CDATA[<p><font face="Comic Sans MS">用</font>onpropertychange,oninput事件解决onchange事件的不足.</p>
<p>onchange在用于文本框输入框时,有一个明显的不足. 事件不会随着文字的输入而触发,而是等到文本框失去焦点(onblur)时才会触发. 也就是没有即时性!</p>
<p>在IE下,可以用<font color="#0000ff">onpropertychange</font>来代替onchange事件,当文本框有任何变化时,<font color="#ff0000">能立即触发</font>此事件.</p>
<p>这样一来问题就解决了.</p>
<p>那其他浏览器呢,onpropertychange可是IE的专利. 接下来就是<font color="#0000ff">oninput</font>事件了.</p>
<p><font color="#ff6600">但是oninput有个诡异,必须用addEventListener的方式来绑定事件.否则无效.</font></p>
<p>好了, 以下是演示例子, 主流浏览器都没问题:</p>
<p>[html]&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; <br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; <br />
&lt;head&gt; <br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt; <br />
&lt;title&gt;on用onpropertychange,oninput事件解决onchange事件的不足 by koyoz.com&lt;/title&gt; <br />
&lt;style type=&quot;text/css&quot;&gt; <br />
*{font-size:14px;font-family:'Comic Sans MS', Verdana} <br />
body {margin-left:20px} <br />
&lt;/style&gt; <br />
&lt;/head&gt; <br />
<br />
&lt;body&gt; <br />
&lt;p&gt;使用onchange事件: &lt;/p&gt; <br />
&lt;input type=&quot;text&quot; id=&quot;txt1&quot; /&gt; <br />
&lt;p&gt;使用onpropertychange/oninput事件: &lt;/p&gt; <br />
&lt;input type=&quot;text&quot; id=&quot;txt2&quot; /&gt; <br />
&lt;p&gt;结果:&lt;/p&gt; <br />
&lt;input type=&quot;text&quot; id=&quot;txt&quot; /&gt; <br />
<br />
<br />
&lt;script type=&quot;text/javascript&quot;&gt; <br />
var $ = function(o) { <br />
return document.getElementById(o) <br />
}; <br />
<br />
$('txt1').onchange = function() { <br />
$('txt').value = this.value; <br />
} <br />
<br />
$('txt2').onpropertychange = function() { <br />
$('txt').value = this.value; <br />
} <br />
<br />
if (window.addEventListener) { <br />
$('txt2').addEventListener('input', function() {$('txt').value = this.value}, false); <br />
} <br />
&lt;/script&gt; <br />
&lt;/body&gt; <br />
&lt;/html&gt;[/html]</p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=225</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-02-12 00:04</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=224</guid>
			<title>js中String的常用扩展</title>
			<author>koyoz</author>
			<description><![CDATA[<p>js中String的常用扩展,包括trim,检查中文,url,emal,电话号码,转类型等</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=224" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=224</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-02-11 11:09</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=222</guid>
			<title>js不同浏览器检测</title>
			<author>koyoz</author>
			<description><![CDATA[<p>包括IE,FF,safari,chrome,opera主流浏览器的检测</p>
<div class="codeText">
<div class="codeHead">JavaScript代码</div>
<ol class="dp-c">
    <li class="alt"><span><span>ie&nbsp;=&nbsp;</span><span class="string">'\v'</span><span>==</span><span class="string">'v'</span><span>; &nbsp;&nbsp;</span></span></li>
    <li><span>ie&nbsp;=&nbsp;!!top.execScript; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>ie&nbsp;=&nbsp;</span><span class="comment">/*@cc_on!@*/</span><span>!1; &nbsp;&nbsp;</span></li>
    <li><span>ie8&nbsp;=&nbsp;!!window.XDomainRequest; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>IEVersion&nbsp;=&nbsp;0</span><span class="comment">/*@cc_on+ScriptEngineMajorVersion()@*/</span><span>; &nbsp;&nbsp;</span></li>
    <li><span>ff&nbsp;=&nbsp;/a/[-1]==</span><span class="string">'a'</span><span>; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>ff3&nbsp;=&nbsp;(</span><span class="keyword">function</span><span>&nbsp;&nbsp;x(){})[-5]==</span><span class="string">'x'</span><span>; &nbsp;&nbsp;</span></li>
    <li><span>ff2&nbsp;=&nbsp;(</span><span class="keyword">function</span><span>&nbsp;x(){})[-6]==</span><span class="string">'x'</span><span>; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>safari=/a/.__proto__==</span><span class="string">'//'</span><span>; &nbsp;&nbsp;</span></li>
    <li><span>chrome=/source/.test((/a/.toString+</span><span class="string">''</span><span>)); &nbsp;&nbsp;</span></li>
    <li class="alt"><span>opera=/^</span><span class="keyword">function</span><span>&nbsp;\(/.test([].sort);&nbsp;&nbsp;</span></li>
</ol>
</div>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=222</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-02-08 18:38</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=221</guid>
			<title>firefox中点击后退按钮后,不记录表单状态的方法</title>
			<author>koyoz</author>
			<description><![CDATA[<p>方法有两种:</p>
<p>1. 使用<strong><font face="Comic Sans MS">autocomplete</font>属性</strong>&nbsp;</p>
<div class="codeText">
<div class="codeHead">XML/HTML代码</div>
<ol class="dp-xml">
    <li class="alt"><font face="Comic Sans MS"><span><span class="tag">&lt;</span><span class="tag-name">input</span><span>&nbsp;</span><span class="attribute">name</span><span>=</span><span class="attribute-value">&quot;submit&quot;</span><span>&nbsp;</span><span class="attribute">autocomplete</span><span>=</span><span class="attribute-value">&quot;off&quot;</span><span>&nbsp;</span><span class="attribute">type</span><span>=</span><span class="attribute-value">&quot;submit&quot;</span><span>&nbsp;</span><span class="attribute">value</span><span>=</span><span class="attribute-value">&quot;提交&quot;</span><span>&nbsp;</span><span class="tag">/&gt;</span><span>&nbsp;&nbsp;</span></span> </font></li>
</ol>
</div>
<p>这样，后退或刷新页面时，<font face="Comic Sans MS">Firefox</font>就不会自动记忆表单状态了。</p>
<p>2. 使用<font face="Comic Sans MS"><font size="3">window.onpageshow</font> 事件, <font size="3">window.onload</font> 事件无法在后退的页面中触发，但这个可以.</font></p>
<p><font face="Comic Sans MS">在<font size="3">onpageshow</font> 这个事件中 处理表单的状态即可, 具体代码就根据实际情况编写了.</font></p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=221</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-02-08 16:36</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=220</guid>
			<title>JS中统计一个函数运行的次数,无需全局变量[原]</title>
			<author>koyoz</author>
			<description><![CDATA[<p>JS中统计一个函数运行的次数,无需全局变量</p>
<div class="codeText">
<div class="codeHead">JavaScript代码</div>
<ol class="dp-c">
    <li class="alt"><span><span class="keyword">function</span><span>&nbsp;koyoz() &nbsp;&nbsp;</span></span></li>
    <li><span>{ &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">var</span><span>&nbsp;cl&nbsp;=&nbsp;arguments.callee; &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span>&nbsp;(!cl&nbsp;.count)&nbsp;cl.count&nbsp;=&nbsp;0; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>&nbsp;&nbsp;&nbsp;&nbsp;cl.count&nbsp;++; &nbsp;&nbsp;</span></li>
    <li><span>&nbsp;&nbsp;&nbsp;&nbsp;alert(</span><span class="string">&quot;第&quot;</span><span>&nbsp;+&nbsp;cl.count&nbsp;+&nbsp;</span><span class="string">&quot;次运行&quot;</span><span>) &nbsp;&nbsp;</span></li>
    <li class="alt"><span>}&nbsp;&nbsp;</span></li>
</ol>
</div>
<p>&nbsp;</p>
<p>[html]&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; <br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; <br />
&lt;head&gt; <br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt; <br />
&lt;title&gt;JS中统计一个函数运行的次数 by koyoz.com&lt;/title&gt; <br />
&lt;script type=&quot;text/javascript&quot;&gt; <br />
function koyoz() <br />
{ <br />
var cl = arguments.callee; <br />
if (!cl .count) cl.count = 0; <br />
cl.count ++; <br />
alert(&quot;第&quot; + cl.count + &quot;次运行&quot;) <br />
} <br />
&lt;/script&gt; <br />
&lt;/head&gt; <br />
<br />
&lt;body&gt; <br />
&lt;button onclick=&quot;koyoz()&quot;&gt;执行koyoz()&lt;/button&gt; <br />
&lt;/body&gt; <br />
&lt;/html&gt;[/html]</p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=220</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-02-06 21:38</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=212</guid>
			<title>免费使用google的javascript CDN</title>
			<author>koyoz</author>
			<description><![CDATA[<p>说javascript的CDN,概念是有点大.</p>
<p>但是google给我们提供了热门Javascript Framework 的Host, 由于使用<a target="_blank" href="http://baike.baidu.com/view/21895.htm">CDN</a>(Content Delivery Network), 世界任何一个地方都能很快的访问到,并且默认是gzip输出,各种优化细节google都帮你做好了.</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=212" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=212</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-01-17 16:08</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=210</guid>
			<title>jQuery 1.3发布了</title>
			<author>koyoz</author>
			<description><![CDATA[<p>jQuery1.2.6后,等了这么长的时间,jQuery1.3终于正式版发布了.</p>
<p>去官方看了下介绍:<a target="_blank" href="http://docs.jquery.com/Release:jQuery_1.3">http://docs.jquery.com/Release:jQuery_1.3</a></p>
<p>这次改进和更新的东西比较多:提升效率,更强的选择器,新增live方法,Event对象,suport对象,重写了append, prepend, before,&nbsp;after,offset等等.更多细节需要看<a target="_blank" href="http://docs.jquery.com/Release:jQuery_1.3">官方文档</a>.</p>
<p>下载地址:<a target="_blank" href="http://jqueryjs.googlecode.com/files/jquery-1.3.js">http://jqueryjs.googlecode.com/files/jquery-1.3.js</a>&nbsp;(114K)</p>
<p>&nbsp;</p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=210</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2009-01-15 19:06</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=200</guid>
			<title>[原创]用jQuery实现的菜单下划线动画效果</title>
			<author>koyoz</author>
			<description><![CDATA[<p>前几天在网站看到一个菜单下划线动画效果感觉不错.不过他的效果有缺陷,鼠标快速移动时会导致动画停不下来.</p>
<p>自己拿jQuery写了一个,解决了上面的问题,而且菜单的独立性比较好,不会干扰到页面其他的内容.</p>
<p>借助了jQuery的功效,对各大浏览器的支持也很好~</p>
<p>看演示: <a target="_blank" href="http://www.koyoz.com/demo/html/menu/link.html">http://www.koyoz.com/demo/html/menu/link.html</a></p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=200" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=200</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2008-12-11 20:47</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=179</guid>
			<title>一些播放器控制代码</title>
			<author>koyoz</author>
			<description><![CDATA[<p>一些播放器控制代码</p>
<p>虽然有点老了.留着收藏备用吧.</p>
<p>包含mediaplayer和realplayer的控制</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=179" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=179</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2008-10-27 21:44</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=176</guid>
			<title>javascript中window.open参数详解</title>
			<author>koyoz</author>
			<description><![CDATA[<p>window.open</p>
<p>说明: 打开一个新窗口，并装载URL指定的文档，或装载一个空白文档，如果没提供URL的话。</p>
<p>语法: window = object.open([URL[,name[,features[,replace]]]])&nbsp;&nbsp;</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=176" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=176</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2008-10-23 23:50</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=129</guid>
			<title>javascript对select元素的option操作</title>
			<author>koyoz</author>
			<description><![CDATA[<p><strong>添加select的option</strong></p>
<p>IE6,IE7,FF均能支持:</p>
<div class="codeText">
<div class="codeHead">JavaScript代码</div>
<ol class="dp-c">
    <li class="alt"><span><span class="keyword">var</span><span>&nbsp;op&nbsp;=&nbsp;</span><span class="keyword">new</span><span>&nbsp;Option(); &nbsp;&nbsp;</span></span></li>
    <li class=""><span>op.text&nbsp;=&nbsp;</span><span class="string">'koyoz'</span><span>; &nbsp;&nbsp;</span></li>
    <li class="alt"><span>op.value&nbsp;=&nbsp;</span><span class="string">'koyoz.com'</span><span>&nbsp;&nbsp;</span></li>
    <li class=""><span>select.options.add(op);&nbsp;&nbsp;</span></li>
</ol>
</div>
<p><strong>修改select的option的值</strong></p>
<p>IE6,IE7,FF均能支持:</p>
<div class="codeText">
<div class="codeHead">JavaScript代码</div>
<ol class="dp-c">
    <li class="alt"><span><span>options[i].text&nbsp;=&nbsp;</span><span class="string">'koyoz'</span><span>;&nbsp;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<div class="codeText">
<div class="codeHead">JavaScript代码</div>
<ol class="dp-c">
    <li class="alt"><span><span>options[i].innerHTML&nbsp;=&nbsp;</span><span class="string">'koyoz'</span><span>;&nbsp;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p><strong>删除一个select的option</strong></p>
<p>IE6,IE7,FF均能支持:</p>
<div class="codeText">
<div class="codeHead">JavaScript代码</div>
<ol class="dp-c">
    <li class="alt"><span><span>select.options[i]&nbsp;=&nbsp;</span><span class="keyword">null</span><span>;&nbsp;&nbsp;</span></span></li>
</ol>
</div>
<p>&nbsp;</p>
<p>呵呵,感谢CSSRAIN纠正.</p>]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=129</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2008-08-17 21:51</pubDate>
		</item>
		<item>
			<guid>http://koyoz.com/blog/?action=show&amp;id=99</guid>
			<title>IE 的 DomReady</title>
			<author>koyoz</author>
			<description><![CDATA[<p>当我们想在页面加载之后执行某个函数，肯定会想到onload了</p>
<p>但onload在浏览器看来，就是页面上的东西全部都加载完毕后才能发生，但那就为时已晚了。</p>
<p>如果只需要对DOM进行操作，那么这时就没必要等到页面全部加载了。我们需要更快的方法。</p><br /><br /><a href="http://koyoz.com/blog/?action=show&amp;id=99" target="_blank">阅读全文</a><br /><br />]]></description>
			<link>http://koyoz.com/blog/?action=show&amp;id=99</link>
			<category domain="http://koyoz.com/blog/?cid=8">javascript</category>
			<pubDate>2008-07-03 19:00</pubDate>
		</item>
	</channel>
</rss>
