<?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>记录与PHP的PK经历 &#187; javascript</title>
	<atom:link href="http://www.pkphp.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pkphp.com</link>
	<description>PK with php!</description>
	<lastBuildDate>Fri, 27 May 2011 02:07:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</title>
		<link>http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/</link>
		<comments>http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 11:10:06 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=1003</guid>
		<description><![CDATA[曾经在这篇文章中介绍了在下IE7 thickbox3.1窗口位置溢出窗口的bug,这次又发现了IE8下同样的问题,thickbox弹出的窗口不在浏览器中间，而在偏下位置，一部分被状态栏遮挡了。thickbox作者貌似已经不再更新了，只能大家想想办法，如果要修复可以按照如下方法： 在thickbox代码第 16行更改如下: $.browser.msie6 = $.browser.msie &#38;&#38; /MSIE 6\.0/i.test(window.navigator.userAgent) &#38;&#38; !/MSIE 7\.0/i.test(window.navigator.userAgent) &#38;&#38; !/MSIE 8\.0/i.test(window.navigator.userAgent); 如果你是在懒得修改代码，你可以直接下载我修改后的代码替换原来的thickbox.js来使用： thickbox.patch.js Related items 使用juqery创建加载消息Using JQuery for an Ajax loading message 关于jquery在windows XP下IE7窗口位置溢出窗口的bug wordpress自助插件auto blogroll V1.4 发布! Google AJAX Libraries API jQuery 技巧总结 thickbox bug(3)thickbox ie8(14)thickbox(12)Thickbox IE7(15)thickbox ie6(15)thickbox中文(1)thickbox iframe bug(1)thickbox 中文(1)navigator.useragent ie8(2)thickbox 窗口位置(1)ie6 thickbox(3)thick box(1)thickbox ie 7(1)ie8 iframe 遮挡(1)修改IE8 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F24%2F%25E9%25A2%2584%25E7%25A5%259D%25E7%25A5%259E%25E8%2588%259F7%25E5%258F%25B7%25E8%25BD%25BD%25E4%25BA%25BA%25E9%25A3%259E%25E8%2588%25B9%25E5%259C%2586%25E6%25BB%25A1%25E6%2588%2590%25E5%258A%259F%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">预祝神舟7号载人飞船圆满成功！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F27%2F%25E7%25A5%259E%25E8%2588%259F7%25E5%258F%25B7%25E5%2587%25BA%25E7%258E%25B0%25E2%2580%259C%25E7%2581%25AB%25E7%2581%25BE%25E2%2580%259D%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">神舟7号出现“火灾”！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F12%2F19%2Fjquery-title-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[bug]jquery无法操作网页title标题内容</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>曾经在<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/">这篇文章</a>中介绍了在下IE7 thickbox3.1窗口位置溢出窗口的bug,这次又发现了IE8下同样的问题,thickbox弹出的窗口不在浏览器中间，而在偏下位置，一部分被状态栏遮挡了。thickbox作者貌似已经不再更新了，只能大家想想办法，如果要修复可以按照如下方法：</p>
<p>在thickbox代码第 16行更改如下:<br />
<code>$.browser.msie6 =<br />
$.browser.msie<br />
&amp;&amp; /MSIE 6\.0/i.test(window.navigator.userAgent)<br />
&amp;&amp; !/MSIE 7\.0/i.test(window.navigator.userAgent)<br />
&amp;&amp; !/MSIE 8\.0/i.test(window.navigator.userAgent);</code></p>
<p>如果你是在懒得修改代码，你可以直接下载我修改后的代码替换原来的thickbox.js来使用：</p>
<p><a href="http://www.pkphp.com/wp-content/uploads/2009/09/thickbox.patch.js">thickbox.patch.js</a><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/'>使用juqery创建加载消息Using JQuery for an Ajax loading message</a></li>
<li><a href='http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/'>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/'>wordpress自助插件auto blogroll V1.4 发布!</a></li>
<li><a href='http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/'>Google AJAX Libraries API</a></li>
<li><a href='http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/'>jQuery 技巧总结</a></li>
</ul>
<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox bug" style="font-size: 13px;">thickbox bug</a>(3)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox ie8" style="font-size: 13px;">thickbox ie8</a>(14)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox" style="font-size: 13px;">thickbox</a>(12)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="Thickbox IE7" style="font-size: 13px;">Thickbox IE7</a>(15)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox ie6" style="font-size: 13px;">thickbox ie6</a>(15)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox中文" style="font-size: 13px;">thickbox中文</a>(1)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox iframe bug" style="font-size: 13px;">thickbox iframe bug</a>(1)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox 中文" style="font-size: 13px;">thickbox 中文</a>(1)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="navigator.useragent ie8" style="font-size: 13px;">navigator.useragent ie8</a>(2)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox 窗口位置" style="font-size: 13px;">thickbox 窗口位置</a>(1)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="ie6 thickbox" style="font-size: 13px;">ie6 thickbox</a>(3)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thick box" style="font-size: 13px;">thick box</a>(1)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="thickbox ie 7" style="font-size: 13px;">thickbox ie 7</a>(1)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="ie8 iframe 遮挡" style="font-size: 13px;">ie8 iframe 遮挡</a>(1)<a href="http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/" title="修改IE8 UserAgent" style="font-size: 13px;">修改IE8 UserAgent</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F24%2F%25E9%25A2%2584%25E7%25A5%259D%25E7%25A5%259E%25E8%2588%259F7%25E5%258F%25B7%25E8%25BD%25BD%25E4%25BA%25BA%25E9%25A3%259E%25E8%2588%25B9%25E5%259C%2586%25E6%25BB%25A1%25E6%2588%2590%25E5%258A%259F%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">预祝神舟7号载人飞船圆满成功！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F27%2F%25E7%25A5%259E%25E8%2588%259F7%25E5%258F%25B7%25E5%2587%25BA%25E7%258E%25B0%25E2%2580%259C%25E7%2581%25AB%25E7%2581%25BE%25E2%2580%259D%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">神舟7号出现“火灾”！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F12%2F19%2Fjquery-title-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[bug]jquery无法操作网页title标题内容</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用juqery创建加载消息Using JQuery for an Ajax loading message</title>
		<link>http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/</link>
		<comments>http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 04:05:00 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[loading]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=533</guid>
		<description><![CDATA[The other day I needed to develop a web page that would display a “loading” message while a large and complex query ran. The solution I came up with involves using Ajax via the JQuery JavaScript library, and goes something like this:

1. Build the base page

The base page will be the one that ...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google AJAX Libraries API</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F24%2Fhow-to-determin-a-ajax-request-using-php%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP如何判断ajax请求</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这些天我在利用jquery创建一个项目，项目中大量的使用了jquery。在实施的过程中需要利用jquery创建加载内容的对话框，下面是我的实施过程：</p>
<p><strong>1. Build the base page</strong></p>
<p>The base page will be the one that the user visits. It is responsible for showing the loading message, and providing an area for the data to be displayed. The most basic <acronym>HTML</acronym> goes something like this:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span>Base page for content<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentLoading"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="contentLoading"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">img</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="loading.gif"</span> <span style="color: #ff0000;">alt</span><span style="color: #0000ff;">="Loading data, please wait..."</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentArea"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
<p>The key sections here are the &lt;div&gt; tags on lines 06 and 09 above. The &lt;div&gt; on line 06 is the one that displays the loading message. In this case it is an image I downloaded from the <a href="http://www.ajaxload.info/" rel="nofollow">Ajaxload website</a>. The &lt;div&gt; on line 09 is the one that will be where the content that we get will be displayed.</p>
<p><strong>2. Build the page that provides the content</strong></p>
<p>The second page is the one that will be provide the content to be displayed in the &lt;div id=”contentArea”&gt; tag in the base HTML page. For my web development I use <a href="http://www.php.net" rel="nofollow">PHP</a>, but it could be any server based language that is used. A simple PHP page to confirm that the Ajax is working is as follows:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> <span style="color: #008000;">// get the start time</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> $start_time = microtime(<span style="color: #0000ff;">true</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> <span style="color: #008000;">// sleep for four seconds</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> sleep(4);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> <span style="color: #008000;">// get the end time</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> $end_time = microtime(<span style="color: #0000ff;">true</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span> <span style="color: #008000;">// print out a message</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> print <span style="color: #006080;">"&lt;p&gt;Call to secondary PHP page worked!&lt;/p&gt;"</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> print <span style="color: #006080;">"&lt;p&gt;Elapsed time: "</span> $end_time - $start_time . <span style="color: #006080;">"&lt;/p&gt;"</span></pre>
</div>
</div>
<p>The key line here is line 05. The call to the <code>sleep()</code> function will mean that the execution of the page is suspended for four seconds. In this way you can see if the Ajax is working because you will see the loading message for no more than four seconds. If it is longer, or shorter, you know something bad happened.</p>
<p><strong>3. Tying it all together with JQuery and Ajax</strong></p>
<p>To tie the two pages together using JQuery and Ajax the first thing we need to do is modify the base page slightly so the JQuery library is loaded. This is simply achieved by line 04 in the source code below:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span>Base page for content<span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">title</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">script</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="/jquery.js"</span> <span style="color: #ff0000;">type</span><span style="color: #0000ff;">="text/javascript"</span><span style="color: #0000ff;">&gt;&lt;/</span><span style="color: #800000;">script</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">head</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentLoading"</span> <span style="color: #ff0000;">class</span><span style="color: #0000ff;">="contentLoading"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">img</span> <span style="color: #ff0000;">src</span><span style="color: #0000ff;">="loading.gif"</span> <span style="color: #ff0000;">alt</span><span style="color: #0000ff;">="Loading data, please wait..."</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span> <span style="color: #0000ff;">&lt;</span><span style="color: #800000;">div</span> <span style="color: #ff0000;">id</span><span style="color: #0000ff;">="contentArea"</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">div</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">body</span><span style="color: #0000ff;">&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  13:</span> <span style="color: #0000ff;">&lt;/</span><span style="color: #800000;">html</span><span style="color: #0000ff;">&gt;</span></pre>
</div>
</div>
<p>We then need to add the following JavaScript code as well:</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   1:</span> &lt;script type=<span style="color: #006080;">"text/javascript"</span>&gt;</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   2:</span> &lt;!--</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   3:</span> jQuery(<span style="color: #0000ff;">function</span>($) {</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   4:</span> $(<span style="color: #006080;">"#contentArea"</span>).load(<span style="color: #006080;">"test.php"</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   5:</span> });</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   6:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   7:</span> $().ajaxSend(<span style="color: #0000ff;">function</span>(r,s){</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">   8:</span> $(<span style="color: #006080;">"#contentLoading"</span>).show();</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">   9:</span> });</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  10:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  11:</span> $().ajaxStop(<span style="color: #0000ff;">function</span>(r,s){</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  12:</span> $(<span style="color: #006080;">"#contentLoading"</span>).fadeOut(<span style="color: #006080;">"fast"</span>);</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  13:</span> });</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  14:</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;">  15:</span> <span style="color: #008000;">//--&gt;</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;">  16:</span> &lt;/script&gt;</pre>
</div>
</div>
<p>The code above adds three functions. Their jobs are as follows:</p>
<ol>
<li>When the page is ready to be manipulated, ie. fully loaded, use Ajax to load the output of the test.php page into the &lt;div id=”contentArea&gt; tag;</li>
<li>When an Ajax call starts, show the &lt;div id=”contentLoading&gt; tag; and</li>
<li>When an Ajax call completes, fade out the &lt;div id=”contentLoading&gt; tag effectively hiding the message.</li>
</ol>
<p>In this way the following workflow is achieved:</p>
<ol>
<li>The users browser loads the base HTML page;</li>
<li>Once the base HTML page is loaded an Ajax call is made to load the test.php page;</li>
<li>When the Ajax call starts the content in the &lt;div id=”contentLoading&gt; tag, the loading message, is displayed;</li>
<li>When the Ajax call finishes the output of the test.php page is put into the &lt;div id=”contentArea&gt; tag and displayed to the user. At the same time the content in the &lt;div id=”contentLoading&gt; tag is hidden.</li>
</ol>
<p>This achieved what I needed. The page shows the user that something is happening, the data is being loaded, and therefore hopefully the user is patient enough to wait until it completes and doesn’t click the refresh button or become impatient. There are a couple of caveats with this solution and they are:</p>
<ol>
<li>If the user doesn’t have JavaScript enabled they won’t see the content returned by the Ajax call because it will never happen. In a closed environment, like the one I’m developing for, this isn’t much of an issue but for a website designed for general consumption an alternative would need to be provided;</li>
<li>The use of Ajax can make it harder to diagnose display issues with your HTML because you can’t see the HTML returned by the Ajax call by using the “view source” functionality of your browser. In my case I use <a href="http://www.mozilla.com/firefox/" rel="nofollow">Firefox</a> and to see the HTML I needed to use the “View Generated Source” functionality of the excellent <a href="http://chrispederick.com/work/web-developer/" rel="nofollow">Web Developer</a> add-on; and</li>
<li>The example code uses the global AjaxSend and AjaxStop functions. This means it is not practical to have another different Ajax call on the same page.</li>
</ol>
<p>I’m sure there are other ways of doing this type of thing, by no means is this <strong>the only</strong> way. I’m still exploring the capabilities of the JQuery library and will no doubt find different ways of achieving this type of functionality. If I do, I’ll be sure to post about them here.<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/'>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</a></li>
<li><a href='http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/'>Google AJAX Libraries API</a></li>
<li><a href='http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/'>jQuery 技巧总结</a></li>
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/'>wordpress自助插件auto blogroll V1.4 发布!</a></li>
</ul>
<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="ajaxSend(function" style="font-size: 13px;">ajaxSend(function</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery sleep time" style="font-size: 13px;">jquery sleep time</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery fade-out sensitive" style="font-size: 13px;">jquery fade-out sensitive</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery please wait" style="font-size: 13px;">jquery please wait</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery sleep" style="font-size: 13px;">jquery sleep</a>(28)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery div创建a" style="font-size: 13px;">jquery div创建a</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="javascript call jquery tag" style="font-size: 13px;">javascript call jquery tag</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery Ajax load" style="font-size: 13px;">jquery Ajax load</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery loading message" style="font-size: 13px;">jquery loading message</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery img load" style="font-size: 13px;">jquery img load</a>(2)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery" style="font-size: 13px;">jquery</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="ajax load php" style="font-size: 13px;">ajax load php</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery ajax loading" style="font-size: 13px;">jquery ajax loading</a>(5)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="jquery ajax" style="font-size: 13px;">jquery ajax</a>(1)<a href="http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/" title="juqery 图片 view" style="font-size: 13px;">juqery 图片 view</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google AJAX Libraries API</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F24%2Fhow-to-determin-a-ajax-request-using-php%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP如何判断ajax请求</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</title>
		<link>http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/</link>
		<comments>http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/#comments</comments>
		<pubDate>Fri, 22 Aug 2008 15:30:13 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[位置]]></category>
		<category><![CDATA[窗口]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=520</guid>
		<description><![CDATA[今天在做一个项目中用到了jquery插件thickbox3.1插件，发现了一个bug，在windows XP下使用IE7，当弹出窗口比较大时，窗口的下面部分会超出ie窗口，而且没有滚动条，怎么也无法看到窗口的全部部分。

经过查找，最后在国外的网站看到了一位朋友修正了这个问题。具体的修正过程看这里吧

如果你也在使用thickbox3.1请使用...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F12%2F19%2Fjquery-title-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[bug]jquery无法操作网页title标题内容</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天在做一个项目中用到了jquery插件thickbox3.1插件，发现了一个bug，在windows XP下使用IE7，当弹出窗口比较大时，窗口的下面部分会超出ie窗口，而且没有滚动条，怎么也无法看到窗口的全部部分。</p>
<p>经过查找，最后在国外的网站看到了一位朋友修正了这个问题。具体的修正过程看<a href="http://jamazon.co.uk/web/2008/03/17/thickbox-31-ie7-positioning-bug/" target="_blank" rel="nofollow">这里吧</a></p>
<p>如果你也在使用thickbox3.1请使用下列文件任选其一覆盖你的thickbox.js文件即可！</p>
<ul>
<li><a href="http://jamazon.co.uk/files/js/thickbox.patch.js" rel="nofollow">thickbox.patch.js</a></li>
<li><a href="http://jamazon.co.uk/files/js/thickbox.patch.pack.js" rel="nofollow">thickbox.patch.pack.js</a></li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/'>使用juqery创建加载消息Using JQuery for an Ajax loading message</a></li>
<li><a href='http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/'>jQuery 技巧总结</a></li>
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/'>wordpress自助插件auto blogroll V1.4 发布!</a></li>
<li><a href='http://www.pkphp.com/2008/07/27/windows-live-writer-%e6%b5%8b%e8%af%95%ef%bc%81/'>windows live writer 测试！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 设置图片大小" style="font-size: 13px;">thickbox 设置图片大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox3.1 窗口大小" style="font-size: 13px;">thickbox3.1 窗口大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="php apache ie7 bug" style="font-size: 13px;">php apache ie7 bug</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox窗口位置" style="font-size: 13px;">thickbox窗口位置</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="jquery 位置 bug" style="font-size: 13px;">jquery 位置 bug</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 图片大小" style="font-size: 13px;">thickbox 图片大小</a>(3)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox3.1 ie" style="font-size: 13px;">thickbox3.1 ie</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox.patch.js -jamazon" style="font-size: 13px;">thickbox.patch.js -jamazon</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="jquery图片大小" style="font-size: 13px;">jquery图片大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 窗口大小可调整" style="font-size: 13px;">thickbox 窗口大小可调整</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 滚动条 IE7" style="font-size: 13px;">thickbox 滚动条 IE7</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox设置图片大小" style="font-size: 13px;">thickbox设置图片大小</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="thickbox 溢出" style="font-size: 13px;">thickbox 溢出</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="图片大小 设置thickbox" style="font-size: 13px;">图片大小 设置thickbox</a>(1)<a href="http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/" title="jquery window 自动调整位置" style="font-size: 13px;">jquery window 自动调整位置</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F12%2F19%2Fjquery-title-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">[bug]jquery无法操作网页title标题内容</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F09%2F17%2Fthickbox-ie6-ie7-ie8-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>wordpress自助插件auto blogroll V1.4 发布!</title>
		<link>http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/</link>
		<comments>http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 14:41:52 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[百宝箱]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[Blogroll]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/2008/08/11/wordpress%e8%87%aa%e5%8a%a9%e6%8f%92%e4%bb%b6auto-blogroll-v14-%e5%8f%91%e5%b8%83/</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160; 前边大家一直抱怨的链接页面排版问题这次得到了圆满的解决，特此发布V1.4。V1.4以前的版本是采用生成新模板与链接页面关联的方式实现的，这样就需要在当前的模板页面产生一个ab_links.php的模板文件，安装的时候需要设置当前模板文件夹属性为0777。这个就多了一步操作。然后就是生成的...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F08%2Fwordpress-auto-blogroll-design%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接auto-blogroll插件设计细节！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F04%2Fwordpress-auto-blogroll%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接插件auto-blogroll！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F10%2F%25E8%25AF%25B7%25E5%258D%2587%25E7%25BA%25A7wordpress%25E8%2587%25AA%25E5%258A%25A9%25E9%2593%25BE%25E6%258E%25A5auto-blogroll%25E5%2588%25B0v13%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">请升级wordpress自助链接auto-blogroll到V1.3</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F07%2Fwp-plungin-auto-blogroll-v10-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接插件auto-blogroll V1.0发布！</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>前边大家一直抱怨的链接页面排版问题这次得到了圆满的解决，特此发布V1.4。V1.4以前的版本是采用生成新模板与链接页面关联的方式实现的，这样就需要在当前的模板页面产生一个ab_links.php的模板文件，安装的时候需要设置当前模板文件夹属性为0777。这个就多了一步操作。然后就是生成的链接页面没有有效的与wordpress当前主题相关联，这给大家追求完美带来了不便。</p>
<p>经过进一步的研究，突然发现了一个简单的方法，不需要模板即可实现输出链接，具体就不细说了，这里罗列一下auto-blogroll插件的V1.4属性：</p>
<p>1.新安装插件只需要设置auto-blogroll文件夹属性为0777然后激活、安装即可完成<br />
2.修正了导入链接时会丢失链接的一些信息（如站长名、email等）的问题，现在从blogroll导入链接时，原有auto-blogroll中已存的数据字段会保存下来。<br />
3.增加了编辑链接页面链接的快捷方式，这样大家就可以在链接页面输入自己需要说明的一些问题了。<br />
4.修正了代码不兼容PHP4的问题。</p>
<p>如何从以前的版本升级：<br />
1.下载：<a href="http://downloads.wordpress.org/plugin/auto-blogroll.zip" rel="nofollow">auto-blogroll V1.0</a>（这里wordpress.org官方现在，当有新的版本时会自动更新压缩文件的）解压缩上传覆盖你的文件夹<br />
2.在manage菜单下删除原来生成的links页面<br />
3.在autoBlogRoll菜单里的“安装”子菜单下重新安装插件</p>
<p>按照这三步可顺利完成升级工作，本次升级不会影响原有的链接数据，升级后你可以去预览你的链接页面，看看是否与现有主题保持一致了。另外：升级完毕后请更改当前主题模板文件夹的权限为你需要的，删除这个文件夹下的ab_links.php文件，因为这个文件已经成为历史了！</p>
<p>关于插件：<a href="http://www.pkphp.com/2008/08/04/wordpress-auto-blogroll/">auto-blogroll详细介绍</a><br />
有worpress.org帐号的朋友来这里投票支持我吧：<a href="http://wordpress.org/extend/plugins/auto-blogroll/" rel="nofollow">点这里投票去</a><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/08/08/wordpress-auto-blogroll-design/'>wordpress自助链接auto-blogroll插件设计细节！</a></li>
<li><a href='http://www.pkphp.com/2008/08/10/%e8%af%b7%e5%8d%87%e7%ba%a7wordpress%e8%87%aa%e5%8a%a9%e9%93%be%e6%8e%a5auto-blogroll%e5%88%b0v13/'>请升级wordpress自助链接auto-blogroll到V1.3</a></li>
<li><a href='http://www.pkphp.com/2008/08/07/wp-plungin-auto-blogroll-v10-released/'>wordpress自助链接插件auto-blogroll V1.0发布！</a></li>
<li><a href='http://www.pkphp.com/2008/08/05/wordpress%e8%87%aa%e5%8a%a9%e9%93%be%e6%8e%a5%e6%8f%92%e4%bb%b6auto-blogroll%e6%8e%a5%e6%94%b6%e4%bb%a3%e7%a0%81%e6%b5%8b%e8%af%95%e5%8d%9a%e5%ae%a2%ef%bc%81/'>wordpress自助链接插件auto-blogroll接收代码测试博客！</a></li>
<li><a href='http://www.pkphp.com/2008/07/13/wordpress-plugin-seo-chinese/'>【原创】WordPress中文SEO插件 V0.8发布!</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="Blogroll" style="font-size: 13px;">Blogroll</a>(3)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="WordPress " style="font-size: 13px;">WordPress </a>(2)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="wordpress, blogroll" style="font-size: 13px;">wordpress, blogroll</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="WordPress Blogroll" style="font-size: 13px;">WordPress Blogroll</a>(3)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="auto blogroll 依分類設定顯示數量並隨機輪播鏈結" style="font-size: 13px;">auto blogroll 依分類設定顯示數量並隨機輪播鏈結</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="去除侧边栏 wordpress" style="font-size: 13px;">去除侧边栏 wordpress</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="wordpress Blogroll 分類" style="font-size: 13px;">wordpress Blogroll 分類</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="wordpress widget 插件" style="font-size: 13px;">wordpress widget 插件</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="wordpress加側邊欄位" style="font-size: 13px;">wordpress加側邊欄位</a>(2)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="新增空白wordpress widget" style="font-size: 13px;">新增空白wordpress widget</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="wordpress 添加分类无法显示" style="font-size: 13px;">wordpress 添加分类无法显示</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="auto blogroll 提交" style="font-size: 13px;">auto blogroll 提交</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="wordpress blogroll 插件" style="font-size: 13px;">wordpress blogroll 插件</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="WordPress 去除 Blogroll" style="font-size: 13px;">WordPress 去除 Blogroll</a>(1)<a href="http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/" title="ab_listAllLinks" style="font-size: 13px;">ab_listAllLinks</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F08%2Fwordpress-auto-blogroll-design%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接auto-blogroll插件设计细节！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F04%2Fwordpress-auto-blogroll%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接插件auto-blogroll！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F10%2F%25E8%25AF%25B7%25E5%258D%2587%25E7%25BA%25A7wordpress%25E8%2587%25AA%25E5%258A%25A9%25E9%2593%25BE%25E6%258E%25A5auto-blogroll%25E5%2588%25B0v13%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">请升级wordpress自助链接auto-blogroll到V1.3</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F07%2Fwp-plungin-auto-blogroll-v10-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接插件auto-blogroll V1.0发布！</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Google AJAX Libraries API</title>
		<link>http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/</link>
		<comments>http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/#comments</comments>
		<pubDate>Fri, 30 May 2008 13:37:30 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=51</guid>
		<description><![CDATA[Google 最近发布了 AJAX Libraries API。 简单说就是 Google 把一些非常流行的 JavaScript 框架放到 Google 的服务器上。这样大家来说可以充分利用 Google 的服务器资源，节省自己的网络带宽，更重要的是 Google 对这些框架进行了压缩，所以在使用 JavaScript 框架的时候速度方面有很大的提高。目前 Google 已经包含了以下的...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F02%2Fgoogle-chart-api-show-chinese%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php中让Google Chart API如何显示中文</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F16%2Ftaobao-api-opening%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">淘宝开放了api，另我兴奋，但是研究之后，发现问题多多！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F13%2Fgoogle-chart-api%25E8%25A2%25AB%25E5%2592%258C%25E8%25B0%2590%25E4%25BA%2586%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Chart API被和谐了</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Google 最近发布了 <a id="r_l_7" class="external" rel="nofollow" href="http://code.google.com/apis/ajaxlibs/" target="_blank">AJAX Libraries API</a>。 简单说就是 Google 把一些非常流行的 JavaScript 框架放到 Google 的服务器上。这样大家来说可以充分利用 Google 的服务器资源，节省自己的网络带宽，更重要的是 Google 对这些框架进行了压缩，所以在使用 JavaScript 框架的时候速度方面有很大的提高。目前 Google 已经包含了以下的 JavaScript 框架：</p>
<ul>
<li>jQuery</li>
<li>prototype</li>
<li>script.aculo.us</li>
<li>MooTools</li>
<li>dojo</li>
</ul>
<p>目前可以有两种调用这些 JavaScript  框架的方法：<br />
第一种，传统的 JavaScript 调用方法：</p>
<pre><span style="color: gray;">&lt;</span><span style="color: blue;">script</span><span style="color: gray;"> </span><span style="color: blue;">src</span><span style="color: gray;"> = </span><span style="color: #8b0000;">"</span><span style="color: red;">http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js</span><span style="color: #8b0000;">"</span><span style="color: gray;">&gt; &lt;/</span><span style="color: blue;">script</span><span style="color: gray;">&gt;</span></pre>
<p>第二种通过 <a id="r_l_8" class="external" rel="nofollow" href="http://code.google.com/apis/ajax/documentation/" target="_blank">Google AJAX API Loader 的 google.load() </a>方法。</p>
<pre><span style="color: gray;">&lt;</span><span style="color: blue;">script</span><span style="color: gray;"> </span><span style="color: blue;">src</span><span style="color: gray;">=</span><span style="color: #8b0000;">"</span><span style="color: red;">http://www.google.com/jsapi</span><span style="color: #8b0000;">"</span><span style="color: gray;">&gt;&lt;/</span><span style="color: blue;">script</span><span style="color: gray;">&gt;
&lt;</span><span style="color: blue;">script</span><span style="color: gray;">&gt;
</span><span style="color: #ffa500;">// Load jQuery</span><span style="color: gray;">
</span><span style="color: blue;">google</span><span style="color: gray;">.</span><span style="color: blue;">load</span><span style="color: olive;">(</span><span style="color: #8b0000;">"</span><span style="color: red;">jquery</span><span style="color: #8b0000;">"</span><span style="color: gray;">, </span><span style="color: #8b0000;">"</span><span style="color: red;">1</span><span style="color: #8b0000;">"</span><span style="color: olive;">)</span><span style="color: gray;">;
&lt;/</span><span style="color: blue;">script</span><span style="color: gray;">&gt;</span></pre>
<p>更多详细介绍请看 <a id="r_l_9" class="external" rel="nofollow" href="http://code.google.com/apis/ajaxlibs/" target="_blank">AJAX Libraries API 网站</a>。</p>
<p>作者：<a id="r_l_10" title="雪山飞猪" href="http://fairyfish.net/" target="_blank" rel="nofollow">雪山飞猪</a><br />
原文链接：<a title="Google AJAX Libraries API" href="http://fairyfish.net/2008/05/29/google-ajax-libraries-api/" rel="nofollow">Google AJAX Libraries API</a><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/'>使用juqery创建加载消息Using JQuery for an Ajax loading message</a></li>
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/09/25/%e5%85%a8%e7%90%83%e9%a6%96%e9%83%a8google-android%e6%89%8b%e6%9c%ba%e9%9c%87%e6%92%bc%e5%8f%91%e5%b8%83%ef%bc%81/'>全球首部Google Android手机震撼发布！</a></li>
<li><a href='http://www.pkphp.com/2008/09/21/%e6%b7%98%e5%ae%9dapi%e5%81%9a%e5%87%ba%e6%9d%a5%e7%9a%84%e4%b8%9c%e8%a5%bf%ef%bc%81/'>淘宝api做出来的东西！</a></li>
<li><a href='http://www.pkphp.com/2008/09/16/taobao-api-opening/'>淘宝开放了api，另我兴奋，但是研究之后，发现问题多多！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="php ajax google" style="font-size: 13px;">php ajax google</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google jsapi" style="font-size: 13px;">google jsapi</a>(2)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="国内 使用google AJAX API的站点" style="font-size: 13px;">国内 使用google AJAX API的站点</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google jsapi twitter" style="font-size: 13px;">google jsapi twitter</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="taobao api ajax" style="font-size: 13px;">taobao api ajax</a>(2)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="Google AJAX Libraries API" style="font-size: 13px;">Google AJAX Libraries API</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google api" style="font-size: 13px;">google api</a>(3)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="jquery google api" style="font-size: 13px;">jquery google api</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google api ajax php" style="font-size: 13px;">google api ajax php</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="google ajax" style="font-size: 13px;">google ajax</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="jquery simple Tree api" style="font-size: 13px;">jquery simple Tree api</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="wordpress Google AJAX Libraries" style="font-size: 13px;">wordpress Google AJAX Libraries</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="php google ajax api image" style="font-size: 13px;">php google ajax api image</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="ajax api image" style="font-size: 13px;">ajax api image</a>(1)<a href="http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/" title="yii framework taobao api" style="font-size: 13px;">yii framework taobao api</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F02%2Fgoogle-chart-api-show-chinese%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php中让Google Chart API如何显示中文</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F16%2Ftaobao-api-opening%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">淘宝开放了api，另我兴奋，但是研究之后，发现问题多多！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F13%2Fgoogle-chart-api%25E8%25A2%25AB%25E5%2592%258C%25E8%25B0%2590%25E4%25BA%2586%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Google Chart API被和谐了</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F30%2Fgoogle-ajax-libraries-api%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery 技巧总结</title>
		<link>http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/</link>
		<comments>http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/#comments</comments>
		<pubDate>Tue, 27 May 2008 10:17:18 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=50</guid>
		<description><![CDATA[一、简介
1.1、概述
随着WEB2.0及ajax思想在互联网上的快速发展传播，陆续出现了一些优秀的Js框架， 其中比较著名的有Prototype、YUI、jQuery、mootools、Bindows以及国内的JSVM框架等，通过将这些JS框架应用到我们 的项目中能够使程序员从设计和书写繁杂的JS应用中解脱出来，将关注点转向功能需求而非实现细节上，从而提...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jquery技巧应用小结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong>一、简介</strong><br />
<strong>1.1、概述</strong><br />
随着WEB2.0及ajax思想在互联网上的快速发展传播，陆续出现了一些优秀的Js<span class="t_tag" onclick="tagshow(event)">框架</span>， 其中比较著名的有Prototype、YUI、jQuery、mootools、Bindows以及国内的JSVM框架等，通过将这些JS框架应用到我们 的项目中能够使程序员从设计和书写繁杂的JS应用中解脱出来，将关注点转向功能需求而非实现细节上，从而提高项目的开发速度。<br />
jQuery是继prototype之后的又一个优秀的Javascript框架。它是由 John Resig 于 2006年初创建的，它有助于简化 JavaScript™ 以及Ajax编程。有人使用这样的一比喻来比较prototype和jQuery：prototype就像Java，而jQuery就像ruby.它是一 个简洁快速灵活的JavaScript框架，它能让你在你的网页上简单的操作文档、处理事件、实现特效并为Web页面添加Ajax交互。<br />
<strong>它具有如下一些特点</strong>：</p>
<ul type="1">
<li>代码简练、语义易懂、学习快速、文档丰富。</li>
<li>jQuery是一个轻量级的脚本，其代码非常小巧，最新版的JavaScript包只有20K左右。</li>
<li>jQuery支持CSS1-CSS3,以及基本的xPath。</li>
<li>jQuery是跨浏览器的，它支持的浏览器包括IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+。</li>
<li>可以很容易的为jQuery扩展其他功能。</li>
<li>能将JS代码和HTML代码完全分离，便于代码和维护和修改。</li>
<li>插件丰富，除了jQuery本身带有的一些特效外，可以通过插件实现更多功能，如表单验证、tab导航、拖放效果、表格排序、DataGrid，树形菜单、图像特效以及ajax上传等。</li>
</ul>
<p>jQuery的设计会改变你写JavaScript代码的方式，降低你学习使用JS操作网页的复杂度，提高网页JS开发效率，无论对于js初学者还是资深专家，jQuery都将是您的首选。<br />
jQuery适合于设计师、开发者以及那些还好者，同样适合用于商业开发，可以说jQuery适合任何JavaScript应用的地方，可用于不同的Web应用程序中。<br />
官方站点：<a href="http://jquery.com/" target="_blank" rel="nofollow">http://jquery.com/</a> 中文站点：<a href="http://jquery.org.cn/" target="_blank" rel="nofollow">http://jquery.org.cn/</a><br />
<strong>1.2、目的</strong><br />
通过学习本文档，能够对jQuery有一个简单的认识了解，清楚JQuery与其他JS框架的不同，掌握jQuery的常用语法、使用技巧及注意事项。<br />
<strong>二、使用方法</strong><br />
在需要使用JQuery的页面中引入JQuery的js文件即可。<br />
例如：&lt;script type=&#8221;text/<span class="t_tag" onclick="tagshow(event)">javascript</span>&#8221; src=&#8221;js/jquery.js&#8221;&gt;&lt;/script&gt;<br />
引入之后便可在页面的任意地方使用jQuery提供的语法。<br />
<strong>三、学习教程及参考资料</strong><br />
请参照《jQuery中文API手册》和<a href="http://jquery.org.cn/visual/cn/index.xml" target="_blank" rel="nofollow">http://jquery.org.cn/visual/cn/index.xml</a><br />
推荐两篇不错的jquery教程：《jQuery的起点教程》和《使用 jQuery 简化 Ajax 开发》<br />
<strong>四、语法总结和注意事项</strong><strong>1、关于页面元素的引用</strong><br />
通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法，且返回的对象为jquery对象（集合对象），不能直接调用dom定义的方法。<br />
<strong>2、jQuery对象与dom对象的转换</strong><br />
只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的，调用方法时要注意操作的是dom对象还是jquery对象。<br />
普通的dom对象一般可以通过$()转换成jquery对象。<br />
如：$(document.getElementById(&#8220;msg&#8221;))则为jquery对象，可以使用jquery的方法。<br />
由于jquery对象本身是一个集合。所以如果jquery对象要转换为dom对象则必须取出其中的某一项，一般可通过索引取出。<br />
如：$(&#8220;#msg&#8221;)[0]，$(&#8220;div&#8221;).eq(1)[0]，$(&#8220;div&#8221;).get()[1]，$(&#8220;td&#8221;)[5]这些都是dom对象，可以使用dom中的方法，但不能再使用Jquery的方法。<br />
以下几种写法都是正确的：<br />
$(&#8220;#msg&#8221;).html();<br />
$(&#8220;#msg&#8221;)[0].innerHTML;<br />
$(&#8220;#msg&#8221;).eq(0)[0].innerHTML;<br />
$(&#8220;#msg&#8221;).get(0).innerHTML;<br />
<strong>3、如何获取jQuery集合的某一项</strong><br />
对于获取的元素集合，获取其中的某一项（通过索引指定）可以使用eq或get(n)方法或者索引号获取，要注意，eq返回的是jquery对象，而get (n)和索引返回的是dom元素对象。对于jquery对象只能使用jquery的方法，而dom对象只能使用dom的方法，如要获取第三个&lt; div&gt;元素的内容。有如下两种方法：<br />
$(&#8220;div&#8221;).eq(2).html();              //调用jquery对象的方法<br />
$(&#8220;div&#8221;).get(2).innerHTML;       //调用dom的方法属性<br />
<strong>4、同一函数实现set和get</strong><br />
Jquery中的很多方法都是如此，主要包括如下几个：</p>
<p>$(&#8220;#msg&#8221;).html();              //返回id为msg的元素节点的html内容。<br />
$(&#8220;#msg&#8221;).html(&#8220;&lt;b&gt;new content&lt;/b&gt;&#8221;);<br />
//将“&lt;b&gt;new content&lt;/b&gt;” 作为html串写入id为msg的元素节点内容中,页面显示粗体的new content<br />
$(&#8220;#msg&#8221;).text();              //返回id为msg的元素节点的文本内容。<br />
$(&#8220;#msg&#8221;).text(&#8220;&lt;b&gt;new content&lt;/b&gt;&#8221;);<br />
//将“&lt;b&gt;new content&lt;/b&gt;” 作为普通文本串写入id为msg的元素节点内容中,页面显示&lt;b&gt;new content&lt;/b&gt;<br />
$(&#8220;#msg&#8221;).height();              //返回id为msg的元素的高度<br />
$(&#8220;#msg&#8221;).height(&#8220;300&#8243;);       //将id为msg的元素的高度设为300<br />
$(&#8220;#msg&#8221;).width();              //返回id为msg的元素的宽度<br />
$(&#8220;#msg&#8221;).width(&#8220;300&#8243;);       //将id为msg的元素的宽度设为300<br />
$(&#8220;input&#8221;).val(&#8220;);       //返回表单输入框的value值<br />
$(&#8220;input&#8221;).val(&#8220;test&#8221;);       //将表单输入框的value值设为test<br />
$(&#8220;#msg&#8221;).click();       //触发id为msg的元素的单击事件<br />
$(&#8220;#msg&#8221;).click(fn);       //为id为msg的元素单击事件添加函数<br />
同样blur,focus,select,submit事件都可以有这两种调用方法<br />
<strong>5、集合处理功能</strong><br />
对于jquery返回的集合内容无需我们自己循环遍历并对每个对象分别做处理，jquery已经为我们提供的很方便的方法进行集合的处理。<br />
包括两种形式：</p>
<p>$(&#8220;p&#8221;).each(function(i){this.style.color=['#f00','#0f0','#00f']<em>})<br />
//为索引分别为0，1，2的p元素分别设定不同的字体颜色。<br />
$(&#8220;tr&#8221;).each(function(i){this.style.backgroundColor=['#ccc','#fff'][i%2]})<br />
//实现表格的隔行换色效果<br />
$(&#8220;p&#8221;).click(function(){alert($(this).html())})<br />
//为每个p元素增加了click事件，单击某个p元素则弹出其内容<br />
<strong>6、扩展我们需要的功能</strong><br />
$.extend({<br />
min: function(a, b){return a &lt; b?a:b; },<br />
max: function(a, b){return a &gt; b?a:b; }<br />
});       //为jquery扩展了min,max两个方法<br />
使用扩展的方法（通过“$.方法名”调用）：<br />
alert(&#8220;a=10,b=20,max=&#8221;+$.max(10,20)+&#8221;,min=&#8221;+$.min(10,20));<br />
<strong>7、支持方法的连写</strong><br />
所谓连写，即可以对一个jquery对象连续调用各种不同的方法。<br />
例如：<br />
$(&#8220;p&#8221;).click(function(){alert($(this).html())})<br />
.mouseover(function(){alert(&#8216;mouse over event&#8217;)})<br />
.each(function(i){this.style.color=['#f00','#0f0','#00f']<em>});<br />
<strong>8、操作元素的样式</strong><br />
主要包括以下几种方式：<br />
$(&#8220;#msg&#8221;).css(&#8220;background&#8221;);              //返回元素的背景颜色<br />
$(&#8220;#msg&#8221;).css(&#8220;background&#8221;,&#8221;#ccc&#8221;)       //设定元素背景为灰色<br />
$(&#8220;#msg&#8221;).height(300); $(&#8220;#msg&#8221;).width(&#8220;200&#8243;);       //设定宽高<br />
$(&#8220;#msg&#8221;).css({ color: &#8220;red&#8221;, background: &#8220;blue&#8221; });//以名值对的形式设定样式<br />
$(&#8220;#msg&#8221;).addClass(&#8220;select&#8221;);       //为元素增加名称为select的class<br />
$(&#8220;#msg&#8221;).removeClass(&#8220;select&#8221;);       //删除元素名称为select的class<br />
$(&#8220;#msg&#8221;).toggleClass(&#8220;select&#8221;);       //如果存在（不存在）就删除（添加）名称为select的class<br />
<strong>9、完善的事件处理功能</strong><br />
Jquery已经为我们提供了各种事件处理方法，我们无需在html元素上直接写事件，而可以直接为通过jquery获取的对象添加事件。<br />
如：<br />
$(&#8220;#msg&#8221;).click(function(){alert(&#8220;good&#8221;)})    //为元素添加了单击事件<br />
$(&#8220;p&#8221;).click(function(i){this.style.color=['#f00','#0f0','#00f']<em>})   //为三个不同的p元素单击事件分别设定不同的处理<br />
jQuery中几个自定义的事件：<br />
（1）hover(fn1,fn2)：一个模仿悬停事件（鼠标移动到一个对象上面及移出这个对象）的方法。当鼠标移动到一个匹配的元素上面时，会触发指定的第一个函数。当鼠标移出这个元素时，会触发指定的第二个函数。<br />
//当鼠标放在表格的某行上时将class置为over，离开时置为out。<br />
$(&#8220;tr&#8221;).hover(function(){<br />
$(this).addClass(&#8220;over&#8221;);<br />
},<br />
function(){<br />
$(this).addClass(&#8220;out&#8221;);<br />
});<br />
（2）ready(fn):当DOM载入就绪可以查询及操纵时绑定一个要执行的函数。<br />
$(document).ready(function(){alert(&#8220;Load Success&#8221;)})<br />
//页面加载完毕提示“Load Success”,不同于onload事件，onload需要页面内容加载完毕（图片等），而ready只要页面html代码下载完毕即触发。与$(fn)等价<br />
（3）toggle(evenFn,oddFn): 每次点击时切换要调用的函数。如果点击了一个匹配的元素，则触发指定的第一个函数，当再次点击同一元素时，则触发指定的第二个函数。随后的每次点击都重复对这两个函数的轮番调用。<br />
//每次点击时轮换添加和删除名为selected的class。<br />
$(&#8220;p&#8221;).toggle(function(){<br />
$(this).addClass(&#8220;selected&#8221;);<br />
},function(){<br />
$(this).removeClass(&#8220;selected&#8221;);<br />
});<br />
（4）trigger(eventtype): 在每一个匹配的元素上触发某类事件。<br />
例如：<br />
$(&#8220;p&#8221;).trigger(&#8220;click&#8221;);       //触发所有p元素的click事件<br />
（5）bind(eventtype,fn)，unbind(eventtype): 事件的绑定与反绑定<br />
从每一个匹配的元素中（添加）删除绑定的事件。<br />
例如：<br />
$(&#8220;p&#8221;).bind(&#8220;click&#8221;, function(){alert($(this).text());});<br />
//为每个p元素添加单击事件<br />
$(&#8220;p&#8221;).unbind();       //删除所有p元素上的所有事件<br />
$(&#8220;p&#8221;).unbind(&#8220;click&#8221;)       //删除所有p元素上的单击事件</em></em></em></p>
<p><em><em><em><strong>10、几个实用特效功能</strong><br />
其中toggle()和slidetoggle()方法提供了状态切换功能。<br />
如toggle()方法包括了hide()和show()方法。<br />
slideToggle()方法包括了slideDown()和slideUp方法。<br />
<strong>11、几个有用的jQuery方法</strong><br />
$.browser.浏览器类型：检测浏览器类型。有效参数：safari, opera, msie, mozilla。如检测是否ie：$.browser.isie，是ie浏览器则返回true。<br />
$.each(obj, fn)：通用的迭代函数。可用于近似地迭代对象和数组（代替循环）。<br />
如<br />
$.each( [0,1,2], function(i, n){ alert( &#8220;Item #&#8221; + i + &#8220;: &#8221; + n ); });<br />
等价于：<br />
var tempArr=[0,1,2];<br />
for(var i=0;i&lt;tempArr.length;i++){<br />
alert(&#8220;Item #&#8221;+i+&#8221;: &#8220;+tempArr<em>);<br />
}<br />
也可以处理json数据，如<br />
$.each( { name: &#8220;John&#8221;, lang: &#8220;JS&#8221; }, function(i, n){ alert( &#8220;Name: &#8221; + i + &#8220;, Value: &#8221; + n ); });<br />
结果为：<br />
Name:name, Value:John<br />
Name:lang, Value:JS<br />
$.extend(target,prop1,propN)：用一个或多个其他对象来扩展一个对象，返回这个被扩展的对象。这是jquery实现的继承方式。<br />
如：<br />
$.extend(settings, options);<br />
//合并settings和options，并将合并结果返回settings中，相当于options继承setting并将继承结果保存在setting中。<br />
var settings = $.extend({}, defaults, options);<br />
//合并defaults和options，并将合并结果返回到setting中而不覆盖default内容。<br />
可以有多个参数（合并多项并返回）<br />
$.map(array, fn)：数组映射。把一个数组中的项目(处理转换后)保存到到另一个新数组中，并返回生成的新数组。<br />
如：<br />
var tempArr=$.map( [0,1,2], function(i){ return i + 4; });<br />
tempArr内容为：[4,5,6]<br />
var tempArr=$.map( [0,1,2], function(i){ return i &gt; 0 ? i + 1 : null; });<br />
tempArr内容为：[2,3]<br />
$.merge(arr1,arr2):合并两个数组并删除其中重复的项目。<br />
如：<br />
$.merge( [0,1,2], [2,3,4] )       //返回[0,1,2,3,4]<br />
$.trim(str)：删除字符串两端的空白字符。<br />
如：<br />
$.trim(&#8221;  hello, how are you?   &#8220;);    //返回&#8221;hello,how are you? &#8221;<br />
<strong>12、解决自定义方法或其他类库与jQuery的冲突</strong><br />
很多时候我们自己定义了$(id)方法来获取一个元素，或者其他的一些js类库如prototype也都定义了$方法，如果同时把这些内容放在一起就会引起变量方法定义冲突，Jquery对此专门提供了方法用于解决此问题。<br />
使用jquery中的jQuery.noConflict();方法即可把变量$的控制权让渡给第一个实现它的那个库或之前自定义的$方法。之后应用 Jquery的时候只要将所有的$换成jQuery即可，如原来引用对象方法$(&#8220;#msg&#8221;)改为jQuery(&#8220;#msg&#8221;)。<br />
如：<br />
jQuery.noConflict();<br />
// 开始使用jQuery<br />
jQuery(&#8220;div   p&#8221;).hide();<br />
// 使用其他库的 $()<br />
$(&#8220;content&#8221;).style.display = &#8216;none&#8217;;</em></em></em></em><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/'>使用juqery创建加载消息Using JQuery for an Ajax loading message</a></li>
<li><a href='http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/'>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</a></li>
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/'>wordpress自助插件auto blogroll V1.4 发布!</a></li>
<li><a href='http://www.pkphp.com/2008/07/04/jquery-ajax-in-zend-framework/'>jQuery AJAX in Zend Framework</a></li>
</ul>
<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="zend framework mootools jquery 冲突" style="font-size: 13px;">zend framework mootools jquery 冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="jquery" style="font-size: 13px;">jquery</a>(2)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="mootools jquery比较" style="font-size: 13px;">mootools jquery比较</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="wordpress jquery冲突" style="font-size: 13px;">wordpress jquery冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="mootools冲突" style="font-size: 13px;">mootools冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="上傳檔案 jquery php" style="font-size: 13px;">上傳檔案 jquery php</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="何将输入框设为灰色 php" style="font-size: 13px;">何将输入框设为灰色 php</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="juqery 不换行" style="font-size: 13px;">juqery 不换行</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="propecia" style="font-size: 13px;">propecia</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="php 数组排序 树形菜单" style="font-size: 13px;">php 数组排序 树形菜单</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="jquery slidetoggle 外层高度" style="font-size: 13px;">jquery slidetoggle 外层高度</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="viagra" style="font-size: 13px;">viagra</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="jquery 单击 添加一条记录" style="font-size: 13px;">jquery 单击 添加一条记录</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="JQUERY ZEND冲突" style="font-size: 13px;">JQUERY ZEND冲突</a>(1)<a href="http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/" title="mootools jquery冲突" style="font-size: 13px;">mootools jquery冲突</a>(5)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jquery技巧应用小结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/05/27/jquery-%e6%8a%80%e5%b7%a7%e6%80%bb%e7%bb%93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10个用能用JavaScript实现的图片特效</title>
		<link>http://www.pkphp.com/2008/05/03/10%e4%b8%aa%e7%94%a8%e8%83%bd%e7%94%a8javascript%e5%ae%9e%e7%8e%b0%e7%9a%84%e5%9b%be%e7%89%87%e7%89%b9%e6%95%88/</link>
		<comments>http://www.pkphp.com/2008/05/03/10%e4%b8%aa%e7%94%a8%e8%83%bd%e7%94%a8javascript%e5%ae%9e%e7%8e%b0%e7%9a%84%e5%9b%be%e7%89%87%e7%89%b9%e6%95%88/#comments</comments>
		<pubDate>Sat, 03 May 2008 02:15:28 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=41</guid>
		<description><![CDATA[一般来说，我们在写博客或做网站时都需要对插图做一些效果，比如增加阴影、图片圆角、倒映等等。这些效果一般可以用3个方法实现，一是用PS实现对图片进行修改，二是使用CSS，三是使用JavaScript。使用PS会破坏原图，而且要花费一定的时间。Netzgesta上有很多实现图片特效的JavaScript提供下载，很多效果都是相当漂亮的。 1、水倒映 这个js将为图片添加水倒映的特效，时下web2.0站点很喜欢这种效果。 如果你喜欢在线生成水倒映效果，可以参考这里。 js下载链接 2、圆角+阴影 或许你记得用RoundPic能在线生成圆角图片，事实上用这个js也可以实现效果。 js下载链接 3、高光圆角阴影 这个效果可以用来做按钮。是我最喜欢的特效之一。 js下载链接 4、斜光阴影效果 和上面的效果看起来非常相似，但也有不同的地方。 js下载链接 5、相框效果 如果你在做图片博客，可以你会喜欢这个js，使用后博客文章内的图片都有相框的效果。 js下载链接 6、黑色相框 不喜欢白色没有立体感的相框，那试试这个立体感充足的js效果吧。 js下载链接 7、放大镜 一个很有趣的js，实现放大镜效果。记得在去年Google开发者日的时候，某个主讲人也有说到在GMaps里实现放大镜的有趣效果。具体效果点击这里。 js下载链接 8、菲林效果 如果你在写一个电影博客，这个效果或许会让你喜欢。 js下载链接 9、花边效果 很简单的图片花边效果。 js下载链接 10、翻页效果 翻页效果是很常见的，Google一下你会发现有很多相关的教程，如果你不想花时间去学，直接下载这个js吧。 js下载链接 安装使用方法： 将下载的压缩包解压之后上传到网站空间，然后在需要显示效果的head里添加代码，比如高光阴影效果Glossy，添加的代码是： &#60;script type=&#8221;text/javascript&#8221; src=&#8221;glossy.js&#8221;&#62;&#60;/script&#62; 对于WordPress，可以在header.php里添加。如果只要求文章页里出现效果，也可以考虑在single.php里添加。 然后，在想要显示特效的图片的&#60;img&#62;标记里添加： class=&#8221;glossy&#8221; 这样效果就出现了。 其它效果添加方法类似。 via BlogOhblog。 Related items thickbox在IE6,IE7,IE8下窗口不在中间的bug修复 使用juqery创建加载消息Using JQuery for an Ajax loading message 关于jquery在windows [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F18%2Fsuper-image-tools-v11%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress超级图片工具super image tools V1.1发布！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F19%2Fwordpress%25E8%25B6%2585%25E7%25BA%25A7%25E5%259B%25BE%25E7%2589%2587%25E5%25B7%25A5%25E5%2585%25B7super-image-tools%25E5%2587%2586%25E5%25A4%2587%25E5%2586%258D%25E6%25AC%25A1%25E5%258D%2587%25E7%25BA%25A7%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress超级图片工具super image tools准备再次升级！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F08%2Fwordpress-image-super-tools%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【原创】wordpress图片水印+远程图片下载插件super image tools</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F31%2Fwordpress-super-image-plugin-v19-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress图片水印+远程图片下载插件super image tools V1.9发布！</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>一般来说，我们在写博客或做网站时都需要对插图做一些效果，比如增加阴影、图片圆角、倒映等等。这些效果一般可以用3个方法实现，一是用PS实现对图片进行修改，二是使用CSS，三是使用JavaScript。使用PS会破坏原图，而且要花费一定的时间。<a href="http://www.netzgesta.de/" rel="nofollow">Netzgesta</a>上有很多实现图片特效的JavaScript提供下载，很多效果都是相当漂亮的。</p>
<p><strong>1、水倒映</strong></p>
<p><a href="http://www.kenengba.com/post/432.html" rel="nofollow"><img src="http://lh5.ggpht.com/wangyanan1981/SBUsNQ9qlrI/AAAAAAAAAJQ/gDRoS8yxWhI/s800/reflex.gif" border="0" alt="10个用能用JavaScript实现的图片特效（可能吧 www.kenengba.com）" /></a></p>
<p>这个js将为图片添加水倒映的特效，时下<a href="http://www.kenengba.com/post/382.html" rel="nofollow">web2.0</a>站点很喜欢这种效果。</p>
<p>如果你喜欢在线生成水倒映效果，可以参考<a href="http://www.kenengba.com/post/341.html" rel="nofollow">这里</a>。</p>
<p><a href="http://www.netzgesta.de/reflex/" rel="nofollow">js下载链接</a></p>
<p><strong>2、圆角+阴影</strong></p>
<p><img src="http://lh5.ggpht.com/wangyanan1981/SBUsNQ9qltI/AAAAAAAAAJg/38zm7VyaP0E/s800/corner.jpg" alt="" /></p>
<p>或许你记得用<a href="http://www.kenengba.com/post/338.html" rel="nofollow">RoundPic</a>能在线生成圆角图片，事实上用这个js也可以实现效果。</p>
<p><a href="http://www.netzgesta.de/corner/" rel="nofollow">js下载链接</a></p>
<p><strong>3、高光圆角阴影</strong></p>
<p><a href="http://www.kenengba.com/post/432.html" rel="nofollow"><img src="http://lh6.ggpht.com/wangyanan1981/SBUsSg9qlwI/AAAAAAAAAJ4/4cqPTK8_yHE/s800/glossy.jpg" border="0" alt="10个用能用JavaScript实现的图片特效（可能吧 www.kenengba.com）" /></a></p>
<p>这个效果可以用来做按钮。是我最喜欢的特效之一。</p>
<p><a href="http://www.netzgesta.de/glossy/" rel="nofollow">js下载链接</a></p>
<p><strong>4、斜光阴影效果</strong></p>
<p><img src="http://lh5.ggpht.com/wangyanan1981/SBUsNQ9qlsI/AAAAAAAAAJY/HvdKWsdjtYQ/s800/bevel.jpg" alt="" /></p>
<p>和上面的效果看起来非常相似，但也有不同的地方。</p>
<p><a href="http://www.netzgesta.de/bevel/" rel="nofollow">js下载链接</a></p>
<p><strong>5、相框效果</strong></p>
<p><a href="http://www.kenengba.com/" rel="nofollow"><img src="http://lh3.ggpht.com/wangyanan1981/SBUsSw9qlxI/AAAAAAAAAKA/xejKU3wrOFI/s800/instant.jpg" border="0" alt="10个用能用JavaScript实现的图片特效（可能吧 www.kenengba.com）" /></a></p>
<p>如果你在做图片博客，可以你会喜欢这个js，使用后博客文章内的图片都有相框的效果。</p>
<p><a href="http://instant.netzgesta.de/" rel="nofollow">js下载链接</a></p>
<p><strong>6、黑色相框</strong></p>
<p><img src="http://lh6.ggpht.com/wangyanan1981/SBUsTg9qlzI/AAAAAAAAAKQ/zydY1gpgew0/s800/slided.jpg" alt="" /></p>
<p>不喜欢白色没有立体感的相框，那试试这个立体感充足的js效果吧。</p>
<p><a href="http://slided.netzgesta.de/" rel="nofollow">js下载链接</a></p>
<p><strong>7、放大镜</strong></p>
<p><a href="http://www.kenengba.com/" rel="nofollow"><img src="http://lh4.ggpht.com/wangyanan1981/SBUsTA9qlyI/AAAAAAAAAKI/h6do4Yb7L8g/s800/loupe.jpg" border="0" alt="10个用能用JavaScript实现的图片特效（可能吧 www.kenengba.com）" /></a></p>
<p>一个很有趣的js，实现放大镜效果。记得在去年Google开发者日的时候，某个主讲人也有说到在GMaps里实现放大镜的有趣效果。具体效果<a href="http://code.google.com/intl/zh-CN/apis/maps/documentation/demos/magnifier/magnifier.html" rel="nofollow">点击这里</a>。</p>
<p><a href="http://www.netzgesta.de/loupe/" rel="nofollow">js下载链接</a></p>
<p><strong>8、菲林效果</strong></p>
<p><img src="http://lh4.ggpht.com/wangyanan1981/SBUsSA9qlvI/AAAAAAAAAJw/BPthH6MPIlY/s800/filmed.jpg" alt="" /></p>
<p>如果你在写一个电影博客，这个效果或许会让你喜欢。</p>
<p><a href="http://www.netzgesta.de/filmed/" rel="nofollow">js下载链接</a></p>
<p><strong>9、花边效果</strong></p>
<p><img src="http://lh6.ggpht.com/wangyanan1981/SBUsNg9qluI/AAAAAAAAAJo/RrnvDiKa1j8/s800/edge.jpg" alt="" /></p>
<p>很简单的图片花边效果。</p>
<p><a href="http://www.netzgesta.de/edge/" rel="nofollow">js下载链接</a></p>
<p><strong>10、翻页效果</strong></p>
<p><a href="http://www.kenengba.com/post/432.html" rel="nofollow"><img src="http://lh5.ggpht.com/wangyanan1981/SBUsNQ9qlqI/AAAAAAAAAJI/ryYkt-zPl5A/s800/curl.jpg" border="0" alt="10个用能用JavaScript实现的图片特效（可能吧 www.kenengba.com）" /></a></p>
<p>翻页效果是很常见的，Google一下你会发现有很多相关的教程，如果你不想花时间去学，直接下载这个js吧。</p>
<p><a href="http://www.netzgesta.de/curl/" rel="nofollow">js下载链接</a></p>
<p><strong><span style="color: #ff6600; font-size: medium;"><span style="text-decoration: underline;">安装使用方法：</span></span></strong></p>
<p>将下载的压缩包解压之后上传到网站空间，然后在需要显示效果的head里添加代码，比如高光阴影效果Glossy，添加的代码是：</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p><span class="Code">&lt;script type=&#8221;text/javascript&#8221; src=&#8221;glossy.js&#8221;&gt;&lt;/script&gt; </span></p></blockquote>
<p>对于<a href="http://www.kenengba.com/index.php?tag=wp" rel="nofollow">WordPress</a>，可以在header.php里添加。如果只要求文章页里出现效果，也可以考虑在single.php里添加。</p>
<p>然后，在想要显示特效的图片的&lt;img&gt;标记里添加：</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p>class=&#8221;glossy&#8221;</p></blockquote>
<p>这样效果就出现了。</p>
<p>其它效果添加方法类似。</p>
<p>via <a href="http://www.blogohblog.com/top-10-javascripts-for-image-manipulation/" rel="nofollow">BlogOhblog</a>。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/'>使用juqery创建加载消息Using JQuery for an Ajax loading message</a></li>
<li><a href='http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/'>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/'>wordpress自助插件auto blogroll V1.4 发布!</a></li>
<li><a href='http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/'>Google AJAX Libraries API</a></li>
</ul>
<a href="http://www.pkphp.com/2008/05/03/10%e4%b8%aa%e7%94%a8%e8%83%bd%e7%94%a8javascript%e5%ae%9e%e7%8e%b0%e7%9a%84%e5%9b%be%e7%89%87%e7%89%b9%e6%95%88/" title="php 生成圆角图片" style="font-size: 13px;">php 生成圆角图片</a>(1)<a href="http://www.pkphp.com/2008/05/03/10%e4%b8%aa%e7%94%a8%e8%83%bd%e7%94%a8javascript%e5%ae%9e%e7%8e%b0%e7%9a%84%e5%9b%be%e7%89%87%e7%89%b9%e6%95%88/" title="图片花边" style="font-size: 13px;">图片花边</a>(1)<a href="http://www.pkphp.com/2008/05/03/10%e4%b8%aa%e7%94%a8%e8%83%bd%e7%94%a8javascript%e5%ae%9e%e7%8e%b0%e7%9a%84%e5%9b%be%e7%89%87%e7%89%b9%e6%95%88/" title="javascript 图片loading的实现" style="font-size: 13px;">javascript 图片loading的实现</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F18%2Fsuper-image-tools-v11%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress超级图片工具super image tools V1.1发布！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F19%2Fwordpress%25E8%25B6%2585%25E7%25BA%25A7%25E5%259B%25BE%25E7%2589%2587%25E5%25B7%25A5%25E5%2585%25B7super-image-tools%25E5%2587%2586%25E5%25A4%2587%25E5%2586%258D%25E6%25AC%25A1%25E5%258D%2587%25E7%25BA%25A7%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress超级图片工具super image tools准备再次升级！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F08%2Fwordpress-image-super-tools%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【原创】wordpress图片水印+远程图片下载插件super image tools</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F31%2Fwordpress-super-image-plugin-v19-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress图片水印+远程图片下载插件super image tools V1.9发布！</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/05/03/10%e4%b8%aa%e7%94%a8%e8%83%bd%e7%94%a8javascript%e5%ae%9e%e7%8e%b0%e7%9a%84%e5%9b%be%e7%89%87%e7%89%b9%e6%95%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery技巧应用小结</title>
		<link>http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/</link>
		<comments>http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 13:36:42 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=12</guid>
		<description><![CDATA[一、简介 1.1、概述 随着WEB2.0及ajax思想在互联网上的快速发展传播，陆续出现了一些优秀的Js框架，其中比较著名的有Prototype、YUI、 jQuery、mootools、Bindows以及国内的JSVM框架等，通过将这些JS框架应用到我们的项目中能够使程序员从设计和书写繁杂的JS应 用中解脱出来，将关注点转向功能需求而非实现细节上，从而提高项目的开发速度。 jQuery是继prototype之后的又一个优秀的Javascrīpt框架。它是由 John Resig 于 2006 年初创建的，它有助于简化 Javascrīpt™ 以及Ajax 编程。有人使用这样的一比喻来比较prototype和jQuery：prototype就像Java，而jQuery就像ruby. 它是一个简洁快速灵活的Javascrīpt框架，它能让你在你的网页上简单的操作文档、处理事件、实现特效并为Web页面添加Ajax交互。 它具有如下一些特点： 代码简练、语义易懂、学习快速、文档丰富。 jQuery是一个轻量级的脚本，其代码非常小巧，最新版的Javascrīpt包只有20K左右。 jQuery支持CSS1-CSS3,以及基本的xPath。 jQuery是跨浏览器的，它支持的浏览器包括IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+。 可以很容易的为jQuery扩展其他功能。 能将JS代码和HTML代码完全分离，便于代码和维护和修改。 插件丰富，除了jQuery本身带有的一些特效外，可以通过插件实现更多功能，如表单验证、tab导航、拖放效果、表格排序、DataGrid，树形菜单、图像特效以及ajax上传等。 jQuery的设计会改变你写Javascrīpt代码的方式，降低你学习使用JS操作网页的复杂度，提高网页JS开发效率，无论对于js初学者还是资深专家，jQuery都将是您的首选。 jQuery适合于设计师、开发者以及那些还好者，同样适合用于商业开发，可以说jQuery适合任何Javascrīpt应用的地方，可用于不同的Web应用程序中。 官方站点：http://jquery.com/ 中文站点：http://jquery.org.cn/ 1.2、目的 通过学习本文档，能够对jQuery有一个简单的认识了解，清楚JQuery与其他JS框架的不同，掌握jQuery的常用语法、使用技巧及注意事项。 二、使用方法 在需要使用JQuery的页面中引入JQuery的js文件即可。 例如：&#60;scrīpt type=&#8221;text/javascrīpt&#8221; src=&#8221;js/jquery.js&#8221;&#62;&#60;/scrīpt&#62; 引入之后便可在页面的任意地方使用jQuery提供的语法。 三、学习教程及参考资料 请参照《jQuery中文API手册》和http://jquery.org.cn/visual/cn/index.xml 推荐两篇不错的jquery教程：《jQuery的起点教程》和《使用 jQuery 简化 Ajax 开发》(说明：以上文档都放在了【附件】中) 四、语法总结和注意事项 1、关于页面元素的引用 通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法，且返回的对象为jquery对象（集合对象），不能直接调用dom定义的方法。 2、jQuery对象与dom对象的转换 只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的，调用方法时要注意操作的是dom对象还是jquery对象。 普通的dom对象一般可以通过$()转换成jquery对象。 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong>一、简介</strong></p>
<p><strong>1.1、概述</strong></p>
<p>随着WEB2.0及<span style="text-decoration: underline;"><strong>ajax</strong></span>思想在互联网上的快速发展传播，陆续出现了一些优秀的Js框架，其中比较著名的有Prototype、YUI、<br />
<span style="text-decoration: underline;"><strong>jQuery</strong></span>、mootools、Bindows以及国内的JSVM框架等，通过将这些JS框架应用到我们的项目中能够使程序员从设计和书写繁杂的JS应<br />
用中解脱出来，将关注点转向功能需求而非实现细节上，从而提高项目的开发速度。</p>
<p>jQuery是继prototype之后的又一个优秀的Javascrīpt框架。它是由 John Resig 于 2006<br />
年初创建的，它有助于简化 Javascrīpt™ 以及Ajax<br />
编程。有人使用这样的一比喻来比较prototype和jQuery：prototype就像<span style="text-decoration: underline;"><strong>Java</strong></span>，而jQuery就像ruby.<br />
它是一个简洁快速灵活的Javascrīpt框架，它能让你在你的网页上简单的操作文档、处理事件、实现特效并为Web页面添加Ajax交互。</p>
<p><strong>它具有如下一些特点</strong>：</p>
<ol>
<li><span style="text-decoration: underline;"><strong>代码</strong></span>简练、语义易懂、<span style="text-decoration: underline;"><strong>学习</strong></span>快速、文档丰富。</li>
<li>jQuery是一个轻量级的脚本，其代码非常小巧，最新版的Javascrīpt包只有20K左右。</li>
<li>jQuery支持CSS1-CSS3,以及基本的xPath。</li>
<li>jQuery是跨浏览器的，它支持的浏览器包括IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+。</li>
<li>可以很容易的为jQuery扩展其他功能。</li>
<li>能将JS代码和<span style="text-decoration: underline;"><strong>HTML</strong></span>代码完全分离，便于代码和维护和修改。</li>
<li>插件丰富，除了jQuery本身带有的一些特效外，可以通过插件实现更多功能，如表单验证、tab导航、拖放效果、表格排序、DataGrid，树形菜单、图像特效以及ajax上传等。</li>
</ol>
<p>jQuery的设计会改变你写Javascrīpt代码的方式，降低你学习使用JS操作网页的复杂度，提高网页JS开发效率，无论对于js初学者还是资深专家，jQuery都将是您的首选。</p>
<p>jQuery适合于设计师、开发者以及那些还好者，同样适合用于商业开发，可以说jQuery适合任何Javascrīpt应用的地方，可用于不同的Web应用程序中。</p>
<p>官方站点：http://jquery.com/ 中文站点：http://jquery.org.cn/</p>
<p><strong>1.2、目的</strong></p>
<p>通过学习本文档，能够对jQuery有一个简单的认识了解，清楚JQuery与其他JS框架的不同，掌握jQuery的常用语法、使用技巧及注意事项。</p>
<p><strong>二、使用方法</strong></p>
<p>在需要使用JQuery的页面中引入JQuery的js文件即可。<br />
例如：&lt;scrīpt type=&#8221;text/javascrīpt&#8221; src=&#8221;js/jquery.js&#8221;&gt;&lt;/scrīpt&gt;<br />
引入之后便可在页面的任意地方使用jQuery提供的语法。</p>
<p><strong>三、学习<span style="text-decoration: underline;"><strong>教程</strong></span>及参考资料</strong></p>
<p>请参照《jQuery中文API手册》和http://jquery.org.cn/visual/cn/index.xml<br />
推荐两篇不错的jquery教程：《jQuery的起点教程》和《使用 jQuery 简化 Ajax 开发》<strong>(<span style="color: #ff0000;">说明：以上文档都放在了【附件】中</span>)</strong></p>
<p><strong>四、语法<span style="text-decoration: underline;"><strong>总结</strong></span>和注意事项</strong></p>
<p><strong>1、关于页面元素的引用</strong></p>
<p>通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法，且返回的<span style="text-decoration: underline;"><strong>对象</strong></span>为jquery对象（集合对象），不能直接调用dom定义的方法。</p>
<p><strong>2、jQuery对象与dom对象的转换</strong></p>
<p>只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的，调用方法时要注意操作的是dom对象还是jquery对象。<br />
普通的dom对象一般可以通过$()转换成jquery对象。<br />
如：$(document.getElementById(&#8220;msg&#8221;))则为jquery对象，可以使用jquery的方法。<br />
由于jquery对象本身是一个集合。所以如果jquery对象要转换为dom对象则必须取出其中的某一项，一般可通过索引取出。<br />
如：$(&#8220;#msg&#8221;)[0]，$(&#8220;div&#8221;).eq(1)[0]，$(&#8220;div&#8221;).get()[1]，$(&#8220;td&#8221;)[5]这些都是dom对象，可以使用dom中的方法，但不能再使用Jquery的方法。<br />
以下几种写法都是正确的：</p>
<p><span class="code">$(&#8220;#msg&#8221;).html();<br />
$(&#8220;#msg&#8221;)[0].innerHTML;<br />
$(&#8220;#msg&#8221;).eq(0)[0].innerHTML;<br />
$(&#8220;#msg&#8221;).get(0).innerHTML;</span></p>
<p><strong>3、如何获取jQuery集合的某一项</strong></p>
<p>对于获取的元素集合，获取其中的某一项（通过索引指定）可以使用eq或get(n)方法或者索引号获取，要注意，eq返回的是jquery对象，而<br />
get(n)和索引返回的是dom元素对象。对于jquery对象只能使用jquery的方法，而dom对象只能使用dom的方法，如要获取第三个<br />
&lt;div&gt;元素的内容。有如下两种方法：</p>
<p><span class="code">$(&#8220;div&#8221;).eq(2).html();               //调用jquery对象的方法<br />
$(&#8220;div&#8221;).get(2).innerHTML;        //调用dom的方法属性</span></p>
<p><strong>4、同一函数实现set和get</strong></p>
<p>Jquery中的很多方法都是如此，主要包括如下几个：</p>
<p>$(&#8220;#msg&#8221;).html();               //返回id为msg的元素节点的html内容。<br />
$(&#8220;#msg&#8221;).html(&#8220;&lt;b&gt;new content&lt;/b&gt;&#8221;);<br />
//将“&lt;b&gt;new content&lt;/b&gt;” 作为html串写入id为msg的元素节点内容中,页面显示粗体的new content</p>
<p>$(&#8220;#msg&#8221;).text();               //返回id为msg的元素节点的文本内容。<br />
$(&#8220;#msg&#8221;).text(&#8220;&lt;b&gt;new content&lt;/b&gt;&#8221;);<br />
//将“&lt;b&gt;new content&lt;/b&gt;” 作为普通文本串写入id为msg的元素节点内容中,页面显示&lt;b&gt;new content&lt;/b&gt;</p>
<p>$(&#8220;#msg&#8221;).height();               //返回id为msg的元素的高度<br />
$(&#8220;#msg&#8221;).height(&#8220;300&#8243;);        //将id为msg的元素的高度设为300<br />
$(&#8220;#msg&#8221;).width();               //返回id为msg的元素的宽度<br />
$(&#8220;#msg&#8221;).width(&#8220;300&#8243;);        //将id为msg的元素的宽度设为300</p>
<p>$(&#8220;input&#8221;).val(&#8220;);        //返回表单输入框的value值<br />
$(&#8220;input&#8221;).val(&#8220;test&#8221;);        //将表单输入框的value值设为test</p>
<p>$(&#8220;#msg&#8221;).click();        //触发id为msg的元素的单击事件<br />
$(&#8220;#msg&#8221;).click(fn);        //为id为msg的元素单击事件添加函数</p>
<p>同样blur,focus,select,submit事件都可以有这两种调用方法</p>
<p><strong>5、集合处理功能</strong></p>
<p>对于jquery返回的集合内容无需我们自己循环遍历并对每个对象分别做处理，jquery已经为我们提供的很方便的方法进行集合的处理。<br />
包括两种形式：</p>
<p>$(&#8220;p&#8221;).each(function(i){this.style.color=['#f00','#0f0','#00f'][i]})<br />
//为索引分别为0，1，2的p元素分别设定不同的字体颜色。</p>
<p>$(&#8220;tr&#8221;).each(function(i){this.style.backgroundColor=['#ccc','#fff'][i%2]})<br />
//实现表格的隔行换色效果</p>
<p>$(&#8220;p&#8221;).click(function(){alert($(this).html())})<br />
//为每个p元素增加了click事件，单击某个p元素则弹出其内容</p>
<p><strong>6、扩展我们需要的功能</strong></p>
<p><span class="code">$.extend({<br />
min: function(a, b){return a &lt; b?a:b; },<br />
max: function(a, b){return a &gt; b?a:b; }<br />
});        //为jquery扩展了min,max两个方法</span></p>
<p>使用扩展的方法（通过“$.方法名”调用）：</p>
<p><span class="code">alert(&#8220;a=10,b=20,max=&#8221;+$.max(10,20)+&#8221;,min=&#8221;+$.min(10,20));</span></p>
<p><strong>7、支持方法的连写</strong><br />
所谓连写，即可以对一个jquery对象连续调用各种不同的方法。</p>
<p>例如：</p>
<p><span class="code">$(&#8220;p&#8221;).click(function(){alert($(this).html())})<br />
.mouseover(function(){alert(&#8216;mouse over event&#8217;)})<br />
.each(function(i){this.style.color=['#f00','#0f0','#00f'][i]});</span></p>
<p><strong>8、操作元素的样式</strong></p>
<p>主要包括以下几种方式：</p>
<p><span class="code">$(&#8220;#msg&#8221;).css(&#8220;background&#8221;);               //返回元素的背景颜色<br />
$(&#8220;#msg&#8221;).css(&#8220;background&#8221;,&#8221;#ccc&#8221;)        //设定元素背景为灰色<br />
$(&#8220;#msg&#8221;).height(300); $(&#8220;#msg&#8221;).width(&#8220;200&#8243;);        //设定宽高<br />
$(&#8220;#msg&#8221;).css({ color: &#8220;red&#8221;, background: &#8220;blue&#8221; });//以名值对的形式设定样式<br />
$(&#8220;#msg&#8221;).addClass(&#8220;select&#8221;);        //为元素增加名称为select的class<br />
$(&#8220;#msg&#8221;).removeClass(&#8220;select&#8221;);        //删除元素名称为select的class<br />
$(&#8220;#msg&#8221;).toggleClass(&#8220;select&#8221;);        //如果存在（不存在）就删除（添加）名称为select的class</span></p>
<p><strong>9、完善的事件处理功能</strong></p>
<p>Jquery已经为我们提供了各种事件处理方法，我们无需在html元素上直接写事件，而可以直接为通过jquery获取的对象添加事件。<br />
如：<br />
<span class="code">$(&#8220;#msg&#8221;).click(function(){alert(&#8220;good&#8221;)})     //为元素添加了单击事件<br />
$(&#8220;p&#8221;).click(function(i){this.style.color=['#f00','#0f0','#00f'][i]})    //为三个不同的p元素单击事件分别设定不同的处理</span></p>
<p>jQuery中几个自定义的事件：</p>
<p>（1）hover(fn1,fn2)：一个模仿悬停事件（鼠标移动到一个对象上面及移出这个对象）的方法。当鼠标移动到一个匹配的元素上面时，会触发指定的第一个函数。当鼠标移出这个元素时，会触发指定的第二个函数。</p>
<p>//当鼠标放在表格的某行上时将class置为over，离开时置为out。<br />
<span class="code">$(&#8220;tr&#8221;).hover(function(){<br />
$(this).addClass(&#8220;over&#8221;);<br />
},<br />
function(){<br />
$(this).addClass(&#8220;out&#8221;);<br />
});</span></p>
<p>（2）ready(fn):当DOM载入就绪可以查询及操纵时绑定一个要执行的函数。</p>
<p><span class="code">$(document).ready(function(){alert(&#8220;Load Success&#8221;)})<br />
//页面加载完毕提示“Load Success”,不同于onload事件，onload需要页面内容加载完毕（<span style="text-decoration: underline;"><strong>图片</strong></span>等），而ready只要页面html代码下载完毕即触发。与$(fn)等价</span></p>
<p>（3）toggle(evenFn,oddFn): 每次点击时切换要调用的函数。如果点击了一个匹配的元素，则触发指定的第一个函数，当再次点击同一元素时，则触发指定的第二个函数。随后的每次点击都重复对这两个函数的轮番调用。</p>
<p><span class="code"> //每次点击时轮换添加和删除名为selected的class。<br />
$(&#8220;p&#8221;).toggle(function(){<br />
$(this).addClass(&#8220;selected&#8221;);<br />
},function(){<br />
$(this).removeClass(&#8220;selected&#8221;);<br />
});</span></p>
<p>（4）trigger(eventtype): 在每一个匹配的元素上触发某类事件。<br />
例如：<br />
<span class="code"> $(&#8220;p&#8221;).trigger(&#8220;click&#8221;);        //触发所有p元素的click事件</span></p>
<p>（5）bind(eventtype,fn)，unbind(eventtype): 事件的绑定与反绑定<br />
从每一个匹配的元素中（添加）删除绑定的事件。<br />
例如：<br />
<span class="code">$(&#8220;p&#8221;).bind(&#8220;click&#8221;, function(){alert($(this).text());});<br />
//为每个p元素添加单击事件<br />
$(&#8220;p&#8221;).unbind();        //删除所有p元素上的所有事件<br />
$(&#8220;p&#8221;).unbind(&#8220;click&#8221;)        //删除所有p元素上的单击事件</span></p>
<p><strong>10、几个实用特效功能</strong></p>
<p>其中toggle()和slidetoggle()方法提供了状态切换功能。<br />
如toggle()方法包括了hide()和show()方法。<br />
slideToggle()方法包括了slideDown()和slideUp方法。</p>
<p><strong>11、几个有用的jQuery方法</strong></p>
<p>$.browser.浏览器类型：检测浏览器类型。有效参数：safari, opera, msie, mozilla。如检测是否ie：$.browser.isie，是ie浏览器则返回true。<br />
$.each(obj, fn)：通用的迭代函数。可用于近似地迭代对象和数组（代替循环）。<br />
如<br />
<span class="code">$.each( [0,1,2], function(i, n){ alert( &#8220;Item #&#8221; + i + &#8220;: &#8221; + n ); }); </span></p>
<p>等价于：<br />
<span class="code">var tempArr=[0,1,2];<br />
for(var i=0;i&lt;tempArr.length;i++){<br />
alert(&#8220;Item #&#8221;+i+&#8221;: &#8220;+tempArr[i]);<br />
}</span></p>
<p>也可以处理json数据，如<br />
<span class="code">$.each( { name: &#8220;John&#8221;, lang: &#8220;JS&#8221; }, function(i, n){ alert( &#8220;Name: &#8221; + i + &#8220;, Value: &#8221; + n ); });</span></p>
<p>结果为：<br />
Name:name, Value:John<br />
Name:lang, Value:JS<br />
$.extend(target,prop1,propN)：用一个或多个其他对象来扩展一个对象，返回这个被扩展的对象。这是jquery实现的继承方式。<br />
如：<br />
<span class="code" style="width: 503px; height: 138px;">$.extend(settings, options);<br />
//合并settings和options，并将合并结果返回settings中，相当于options继承setting并将继承结果保存在setting中。<br />
var settings = $.extend({}, defaults, options);<br />
//合并defaults和options，并将合并结果返回到setting中而不覆盖default内容。<br />
可以有多个参数（合并多项并返回）</span></p>
<p>$.map(array, fn)：数组映射。把一个数组中的项目(处理转换后)保存到到另一个新数组中，并返回生成的新数组。<br />
如：<br />
var tempArr=$.map( [0,1,2], function(i){ return i + 4; });<br />
tempArr内容为：[4,5,6]<br />
var tempArr=$.map( [0,1,2], function(i){ return i &gt; 0 ? i + 1 : null; });<br />
tempArr内容为：[2,3]<br />
$.merge(arr1,arr2):合并两个数组并删除其中重复的项目。<br />
如：<br />
<span class="code">$.merge( [0,1,2], [2,3,4] )        //返回[0,1,2,3,4]</span></p>
<p>$.trim(str)：删除字符串两端的空白字符。<br />
如：<br />
<span class="code">$.trim(&#8221;  hello, how are you?    &#8220;);     //返回&#8221;hello,how are you? &#8220;</span></p>
<p><strong>12、解决自定义方法或其他类库与jQuery的冲突</strong></p>
<p>很多时候我们自己定义了$(id)方法来获取一个元素，或者其他的一些js类库如prototype也都定义了$方法，如果同时把这些内容放在一起就会引起变量方法定义冲突，Jquery对此专门提供了方法用于解决此问题。<br />
使 用jquery中的jQuery.noConflict();方法即可把变量$的控制权让渡给第一个实现它的那个库或之前自定义的$方法。之后应用<br />
Jquery的时候只要将所有的$换成jQuery即可，如原来引用对象方法$(&#8220;#msg&#8221;)改为jQuery(&#8220;#msg&#8221;)。<br />
如：</p>
<p><span class="code">jQuery.noConflict();<br />
// 开始使用jQuery<br />
jQuery(&#8220;div    p&#8221;).hide();<br />
// 使用其他库的 $()<br />
$(&#8220;content&#8221;).style.display = &#8216;none&#8217;;</span><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2009/09/17/thickbox-ie6-ie7-ie8-bug/'>thickbox在IE6,IE7,IE8下窗口不在中间的bug修复</a></li>
<li><a href='http://www.pkphp.com/2008/09/07/jquery-for-ajax-loading-message/'>使用juqery创建加载消息Using JQuery for an Ajax loading message</a></li>
<li><a href='http://www.pkphp.com/2008/08/22/jquery-windowsxp-ie7-bug/'>关于jquery在windows XP下IE7窗口位置溢出窗口的bug</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/wordpress-plugin-auto-blogroll-v14-released/'>wordpress自助插件auto blogroll V1.4 发布!</a></li>
<li><a href='http://www.pkphp.com/2008/05/30/google-ajax-libraries-api/'>Google AJAX Libraries API</a></li>
</ul>
<a href="http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/" title="juqery hover" style="font-size: 13px;">juqery hover</a>(1)<a href="http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/" title="juqery鼠标按下事件" style="font-size: 13px;">juqery鼠标按下事件</a>(1)<a href="http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/" title="jquery ie7 元素名" style="font-size: 13px;">jquery ie7 元素名</a>(1)<a href="http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/" title="juqery backgroup" style="font-size: 13px;">juqery backgroup</a>(1)<a href="http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/" title="levitra" style="font-size: 13px;">levitra</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F27%2Fjquery-%25E6%258A%2580%25E5%25B7%25A7%25E6%2580%25BB%25E7%25BB%2593%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery 技巧总结</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F04%2Fjquery-ajax-in-zend-framework%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jQuery AJAX in Zend Framework</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fjquery-for-ajax-loading-message%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用juqery创建加载消息Using JQuery for an Ajax loading message</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F22%2Fjquery-windowsxp-ie7-bug%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F03%2F24%2Fjquery%25E6%258A%2580%25E5%25B7%25A7%25E5%25BA%2594%25E7%2594%25A8%25E5%25B0%258F%25E7%25BB%2593%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于jquery在windows XP下IE7窗口位置溢出窗口的bug</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/03/24/jquery%e6%8a%80%e5%b7%a7%e5%ba%94%e7%94%a8%e5%b0%8f%e7%bb%93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

