<?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>QLJ's Blog &#187; web</title>
	<atom:link href="http://qlj.sh.cn/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://qlj.sh.cn</link>
	<description>搜集网络信息,风云磅实验</description>
	<lastBuildDate>Thu, 12 Apr 2012 06:50:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>jiathis网易微博来源问题反映</title>
		<link>http://qlj.sh.cn/web/20120309/jiathis-t163-appkey/</link>
		<comments>http://qlj.sh.cn/web/20120309/jiathis-t163-appkey/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 07:53:07 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1130</guid>
		<description><![CDATA[问题出现于，使用jiathis的分享，自定义了APPKEY后无法正常显示来源 反映客服，客服表示没问题 yingouqlj： 2012-03-08 16:30 您网站发现问题的URL：http://www.maixiaochi.com/note/view/jE 您要反馈的内容： 网易微博 无法正常显示来源。 来源已经通过审核 但是显示的依然是站外分享 是不是URL中的 key可以source不可以 网易官方实例的URL 是 param[0] = \&#8217;key=zAU48G03C3NUKMLG\&#8217;; //转发来源 希望jiathis 检查 并修复 JiaThis客服： 2012-03-08 18:04 您好，我们试了一下，确实是已经不是使用的我们的接口了，已经显示站外分享了，您确定appkey已经通过网易审核了吗？ 经测试,确实有问题，并非因为我修改了JS导致错误 先去网易开放平台生成一个正确的分享链接 http://api.t.163.com/share?key=zAU48G03C3NUKMLG&#38;url=http%3A%2F%2Fopen.t.163.com%2Fcomponents%2Fonekey&#38;togImg=true&#38;images= key是Consumer Key 并且 已经通过审核了。 url是链接，其他暂时参数不管 使用此链接可以正常显示来源 下面是我使用JIATHIS图形化生成的链接，并点击网易微博所产生的链接 http://t.163.com/article/user/checkLogin.do?source=zAU48G03C3NUKMLG%20&#38;info=JiaThis%E2%84%A2%E6%8C%89%E9%92%AE%E8%87%AA%E5%AE%9A%E4%B9%89%E5%A4%A7%E5%85%A8+-+JiaThis%E2%84%A2%E6%8C%89%E9%92%AE%E8%87%AA%E5%AE%9A%E4%B9%89%E5%A4%A7%E5%85%A8+-+%E5%8A%A0%E7%BD%91+http%3A%2F%2Fwww.maixiaochi.com%2Fnote%2Fview%2FjE&#38;images= 这里的参数 一个是 source 也就是Consumer Key 注意： source=zAU48G03C3NUKMLG%20 后面多了个%20 也就是空格。 另一个是info， 这个是自定义的内容， 没有url参数 如果是网易的那个链接。如果只使用key 没有url，也无法显示来源， 并且提示 ：parameter required: key [...]]]></description>
			<content:encoded><![CDATA[<p>问题出现于，使用jiathis的分享，自定义了APPKEY后无法正常显示来源<br />
反映客服，客服表示没问题</p>
<p>yingouqlj：	2012-03-08 16:30<br />
您网站发现问题的URL：<a href="http://www.maixiaochi.com/note/view/jE" target="_blank">http://www.maixiaochi.com/note/view/jE</a><br />
您要反馈的内容：<br />
网易微博 无法正常显示来源。<br />
来源已经通过审核<br />
但是显示的依然是站外分享<br />
是不是URL中的 key可以source不可以<br />
网易官方实例的URL 是 param[0] = \&#8217;key=zAU48G03C3NUKMLG\&#8217;; //转发来源<br />
希望jiathis 检查 并修复<br />
JiaThis客服：	2012-03-08 18:04<br />
您好，我们试了一下，确实是已经不是使用的我们的接口了，已经显示站外分享了，您确定appkey已经通过网易审核了吗？</p>
<p>经测试,确实有问题，并非因为我修改了JS导致错误</p>
<p>先去网易开放平台生成一个正确的分享链接</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">http://api.t.163.com/share?key=zAU48G03C3NUKMLG&amp;url=http%3A%2F%2Fopen.t.163.com%2Fcomponents%2Fonekey&amp;togImg=true&amp;images=</pre></div></div>

<p>key是Consumer Key 并且 已经通过审核了。 url是链接，其他暂时参数不管<br />
使用此链接可以正常显示来源</p>
<p>下面是我使用JIATHIS图形化生成的链接，并点击网易微博所产生的链接</p>

<div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">http://t.163.com/article/user/checkLogin.do?source=zAU48G03C3NUKMLG%20&amp;info=JiaThis%E2%84%A2%E6%8C%89%E9%92%AE%E8%87%AA%E5%AE%9A%E4%B9%89%E5%A4%A7%E5%85%A8+-+JiaThis%E2%84%A2%E6%8C%89%E9%92%AE%E8%87%AA%E5%AE%9A%E4%B9%89%E5%A4%A7%E5%85%A8+-+%E5%8A%A0%E7%BD%91+http%3A%2F%2Fwww.maixiaochi.com%2Fnote%2Fview%2FjE&amp;images=</pre></div></div>

<p>这里的参数 一个是<br />
source 也就是Consumer Key  <strong>注意</strong>： source=zAU48G03C3NUKMLG%20  后面多了个%20 也就是空格。<br />
另一个是info， 这个是自定义的内容， <strong>没有url参数</strong></p>
<p>如果是网易的那个链接。如果只使用key 没有url，也无法显示来源，<br />
并且提示 ：parameter required: key or url</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20120309/jiathis-t163-appkey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>node.js 初体验</title>
		<link>http://qlj.sh.cn/web/20110312/node-js-1/</link>
		<comments>http://qlj.sh.cn/web/20110312/node-js-1/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 19:31:23 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1110</guid>
		<description><![CDATA[依据Google著名的开源JavaScript引擎V8来进行二次开发的Web I/O服务器（http://nodejs.org/）。V8本身是非常快的JavaScript引擎，处理JS执行运行的速度非常高。相关测试表明，FireFox、Opera和IE的JS引擎速度都不及V8来得快。而且，还可以说，只要浏览器之间的JS引擎大战一日不减，NodeJs就可以从中受益。有竞争才有进步：）。 以上简介 网络复制。。不介绍了 从官方 下载了NODE ./configure make make install 完成安装 其中需要安装libssl-dev 安装完后看下版本吧 yingouqlj@Compaq-321:~/temp/node-v0.4.2$ node -v v0.4.2 第一次使用 当然尝试下helloworld 不知道 网上的都是0.2X 的版本还是 转载后 少了表单符号。。网上好多示例执行都有问题 剧烈 很多出现 res.close（） 报错 或者在OSCHINA上看到的。 居然字符串都没有引号。 最后找到了官方正确的示例。对比下 没有那个出错的 RES。CLOSE var sys=require&#40;'sys'&#41;,http=require&#40;'http'&#41;; var server=http.createServer&#40;function&#40;req,res&#41;&#123; res.writeHeader&#40;200,&#123;'Content-Type':'text/plain'&#125;&#41;; res.end&#40;&#34;hello world&#34;&#41;; &#125;&#41; server.listen&#40;7581,'127.0.0.1'&#41;; sys.puts&#40;&#34;run&#34;&#41;; 保存 后运行 node 文件名 然后访问本地 127.0.0.1:7581 即可看到 HELLOWORLD 这些代码虽然都是网络复制的。。 但为什么网上很多都是报错的。。是因为版本吗？]]></description>
			<content:encoded><![CDATA[<p>依据Google著名的开源JavaScript引擎V8来进行二次开发的Web I/O服务器（http://nodejs.org/）。V8本身是非常快的JavaScript引擎，处理JS执行运行的速度非常高。相关测试表明，FireFox、Opera和IE的JS引擎速度都不及V8来得快。而且，还可以说，只要浏览器之间的JS引擎大战一日不减，NodeJs就可以从中受益。有竞争才有进步：）。<br />
以上简介 网络复制。。不介绍了<br />
<span id="more-1110"></span><br />
从官方 下载了NODE<br />
./configure<br />
make<br />
make install<br />
完成安装<br />
其中需要安装libssl-dev<br />
安装完后看下版本吧<br />
yingouqlj@Compaq-321:~/temp/node-v0.4.2$ node -v<br />
v0.4.2</p>
<p>第一次使用 当然尝试下helloworld<br />
不知道 网上的都是0.2X 的版本还是 转载后 少了表单符号。。网上好多示例执行都有问题<br />
剧烈 很多出现 res.close（）  报错<br />
或者在OSCHINA上看到的。 居然字符串都没有引号。 </p>
<p>最后找到了官方正确的示例。对比下 没有那个出错的 RES。CLOSE</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> sys<span style="color: #339933;">=</span>require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'sys'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>http<span style="color: #339933;">=</span>require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> server<span style="color: #339933;">=</span>http.<span style="color: #660066;">createServer</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>req<span style="color: #339933;">,</span>res<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
res.<span style="color: #660066;">writeHeader</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">200</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span><span style="color: #3366CC;">'Content-Type'</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'text/plain'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
res.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hello world&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
server.<span style="color: #660066;">listen</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">7581</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'127.0.0.1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
sys.<span style="color: #660066;">puts</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;run&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>保存  后运行 node 文件名<br />
然后访问本地 127.0.0.1:7581<br />
即可看到 HELLOWORLD</p>
<p>这些代码虽然都是网络复制的。。 但为什么网上很多都是报错的。。是因为版本吗？</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20110312/node-js-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google吃豆人游戏的杯具：浪费全球482万工时</title>
		<link>http://qlj.sh.cn/web/20100602/google-pac-man/</link>
		<comments>http://qlj.sh.cn/web/20100602/google-pac-man/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 12:23:14 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1087</guid>
		<description><![CDATA[这个真有意思 哈哈 我跟越 还2个人一起双人玩。。 比单人简单多了。 还想玩。。。 不过找不到页面了 Google为纪念经典游戏PAC-MAN（吃豆人）30周年而于上周五推出的Doodle大受欢迎，有人评论说“吃豆人”毁掉了数百万美元的生产力，然而Rescuetime的统计显示，不是数百万而是一亿多美元。 多数人都是把Google作为一个跳板，一种导航工具，因此在Google搜索页面停留的时间很短，至多十几秒钟。但当PAC-MAN推出之后，Google全球的数亿用户中，有一部分人可能会在主页停留更长时间去玩吃豆人游戏。 Rescuetime对比了PAC-MAN日与过去周五的流量差异，发现了明显区别。Rescuetime选择了一个随机子集，共包含11000余人，他们停留在Google主页上的时间达到了3百万秒，平均每位用户在Google.com上多停留了36秒。根据Wolfram Alpha的Google 流量统计，5月23日Google的全球独立访问用户为504,703,000，以此计算PAC-MAN浪费了全球4,819,352工时，以每小时25美元计算，总共浪费了120,483,800美元。这笔钱足以雇用Google所有的19,835名员工，包括Larry和Sergey，为你工作6周的时间。]]></description>
			<content:encoded><![CDATA[<p>这个真有意思 哈哈</p>
<p>我跟越 还2个人一起双人玩。。<br />
比单人简单多了。<br />
还想玩。。。 不过找不到页面了<br />
Google为纪念经典游戏PAC-MAN（吃豆人）30周年而于上周五推出的Doodle大受欢迎，有人评论说“吃豆人”毁掉了数百万美元的生产力，然而Rescuetime的统计显示，不是数百万而是一亿多美元。 多数人都是把Google作为一个跳板，一种导航工具，因此在Google搜索页面停留的时间很短，至多十几秒钟。但当PAC-MAN推出之后，Google全球的数亿用户中，有一部分人可能会在主页停留更长时间去玩吃豆人游戏。</p>
<p>Rescuetime对比了PAC-MAN日与过去周五的流量差异，发现了明显区别。Rescuetime选择了一个随机子集，共包含11000余人，他们停留在Google主页上的时间达到了3百万秒，平均每位用户在Google.com上多停留了36秒。根据Wolfram Alpha的Google 流量统计，5月23日Google的全球独立访问用户为504,703,000，以此计算PAC-MAN浪费了全球4,819,352工时，以每小时25美元计算，总共浪费了120,483,800美元。这笔钱足以雇用Google所有的19,835名员工，包括Larry和Sergey，为你工作6周的时间。</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100602/google-pac-man/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>笑谈QQmail的大容量</title>
		<link>http://qlj.sh.cn/web/20100520/qqmail-so-big/</link>
		<comments>http://qlj.sh.cn/web/20100520/qqmail-so-big/#comments</comments>
		<pubDate>Wed, 19 May 2010 19:12:08 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[qq]]></category>
		<category><![CDATA[腾讯]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1082</guid>
		<description><![CDATA[QQ邮箱正可谓巨大。。 大到了。。就想我的硬盘一般。。。 如此存放EMAIL 。。。 要放到啥时候才能满 邮箱容量：128G (已使用1.33G，1%) 受诱惑了吧。 更好的是。。QQ经常在线 用QQMAIL 还能直接收到邮件提醒。。 于是呼 打算代收一下GMAIL 。。 GMAIL 很方便很好用。。 垃圾过滤的也比其他任何一个强（自己用的几个目前是GMAIL 最强吧 不排除更好用的收费邮箱的存在） 就这样填写了自己GMAIL的帐户 密码 才收了几十封就停了 也没在意。 反正是代收。。 方便提醒邮件而已。。 没想到过了2天。。 收到TENCENT发来的邮件 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; 您的邮箱暂时不能收取大邮件 发件人信息 发件人：QQ邮箱管理员 &#60;10000@qq.com&#62; 查看 添加 时 间：2010年5月11日(星期二) 凌晨0:06 纯文本 &#124; 收件人： yingouqlj 附 件：0 个 ( ) 大 小：2.3K 打印 &#124; 显示邮件原文 &#124; 导出为eml文件 &#124; 邮件有乱码？ [...]]]></description>
			<content:encoded><![CDATA[<p>QQ邮箱正可谓巨大。。<br />
大到了。。就想我的硬盘一般。。。<br />
如此存放EMAIL 。。。<br />
要放到啥时候才能满<br />
邮箱容量：<span style="color: #ff0000;">128G</span> (已使用1.33G，1%)<br />
受诱惑了吧。<br />
<span id="more-1082"></span><br />
更好的是。。QQ经常在线 用QQMAIL 还能直接收到邮件提醒。。<br />
于是呼<br />
打算代收一下GMAIL 。。<br />
GMAIL 很方便很好用。。 垃圾过滤的也比其他任何一个强（自己用的几个目前是GMAIL 最强吧 不排除更好用的收费邮箱的存在）<br />
就这样填写了自己GMAIL的帐户 密码<br />
才收了几十封就停了</p>
<p>也没在意。<br />
反正是代收。。 方便提醒邮件而已。。</p>
<p>没想到过了2天。。<br />
收到TENCENT发来的邮件<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
您的邮箱暂时不能收取大邮件    发件人信息<br />
发件人：QQ邮箱管理员 &lt;10000@qq.com&gt;  查看 添加<br />
时   间：2010年5月11日(星期二) 凌晨0:06  纯文本 |<br />
收件人： yingouqlj<br />
附   件：0 个 ( )<br />
大   小：2.3K<br />
打印 | 显示邮件原文 | 导出为eml文件 | 邮件有乱码？ | 转发到群邮件 | 保存到记事本 | 作为附件转发</p>
<p>备　注： 编辑  删除<br />
请在此输入备注&#8230;<br />
取消</p>
<p>请认准此标志，拥有此标志的才是发自腾讯公司的系统邮件。<br />
标记：已将此邮件标记为待办邮件。 取消待办<br />
xcheatcode:0<br />
尊敬的用户，<br />
您好！</p>
<p>近期您的邮箱集中收到了过多的大邮件。可能是邮箱遭遇到恶意邮件大批量攻击。<br />
为了您的邮箱和系统的安全，最近5日内，此邮箱将不再接收大于5M的邮件。<br />
在此期间，对于普通附件不超过5M（超大附件不受限制）的邮件，仍然可以正常收取。在5日之后，邮箱将自动恢复正常。</p>
<p>敬请知晓。谢谢对QQ邮箱的支持。</p>
<p>QQ邮箱管理员<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>HOHO<br />
之前用GMAIL 发了几个 喊附件的邮件 附件在20M</p>
<p>没想到居然是这样。。。<br />
<span style="color: #ff0000;">TENCENT 真抠门。</span>。<br />
<strong>发附件超过5MB 是默认不保存 发件箱的（手动才可以）<br />
所谓的超大附件 也是只能放7天</strong><br />
163 3G邮箱（也自动保存）<br />
GMAIL 7G 也自动保存<br />
TENCENT 居然还会说 太多附件 邮件</p>
<p><a href="http://fashion.cotie.cn/">酷贴时尚</a></p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100520/qqmail-so-big/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>css3字体阴影text shadow</title>
		<link>http://qlj.sh.cn/web/20100413/css3-text-shadow/</link>
		<comments>http://qlj.sh.cn/web/20100413/css3-text-shadow/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 17:17:51 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1069</guid>
		<description><![CDATA[text-shadow基本语法 text-shadow ： none &#124; &#60;length&#62; none &#124; &#91;&#60;shadow&#62;, &#93; * &#60;shadow&#62; 或none &#124; &#60;color&#62; &#91;, &#60;color&#62; &#93;* ： 指定颜色。 ： 由浮点数字和单位标识符组成的长度值。可为负值。指定阴影的水平延伸距离。 ： 由浮点数字和单位标识符组成的长度值。不可为负值。 指定模糊效果的作用距离。如果你仅仅需要模糊效果，将前两个 length 全部设定为 0 。请参阅 长度单位。 .text_shadow&#123; width:200px; padding:40px 20px; background:#a0b3d6; text-shadow:2px 2px 1px white; &#125; 下面是一个火焰字体的效果 #xibit&#123; padding-top:10px;text-align:center;text-shadow:0 0 4px white, 0 -5px 4px #FFFF33, 2px -10px 6px #FFDD33, 2px [...]]]></description>
			<content:encoded><![CDATA[<p>text-shadow基本语法</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">text-shadow</span> ： <span style="color: #993333;">none</span> | &lt;length<span style="color: #00AA00;">&gt;</span> <span style="color: #993333;">none</span> | <span style="color: #00AA00;">&#91;</span>&lt;shadow<span style="color: #00AA00;">&gt;,</span> <span style="color: #00AA00;">&#93;</span> <span style="color: #00AA00;">*</span> &lt;shadow<span style="color: #00AA00;">&gt;</span> 或<span style="color: #993333;">none</span> | &lt;color<span style="color: #00AA00;">&gt;</span> <span style="color: #00AA00;">&#91;</span><span style="color: #00AA00;">,</span> &lt;color<span style="color: #00AA00;">&gt;</span> <span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">*</span></pre></div></div>

<color> ： 指定颜色。<br />
<length> ： 由浮点数字和单位标识符组成的长度值。可为负值。指定阴影的水平延伸距离。<br />
<opacity> ： 由浮点数字和单位标识符组成的长度值。不可为负值。 指定模糊效果的作用距离。如果你仅仅需要模糊效果，将前两个 length 全部设定为 0 。请参阅 长度单位。</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.text_shadow<span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span> 
    <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span> 
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#a0b3d6</span><span style="color: #00AA00;">;</span> 
    <span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #933;">2px</span> <span style="color: #933;">2px</span> <span style="color: #933;">1px</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>下面是一个火焰字体的效果</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#xibit</span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>text-align<span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>text-shadow<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">4px</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-5px</span> <span style="color: #933;">4px</span> <span style="color: #cc00cc;">#FFFF33</span><span style="color: #00AA00;">,</span> <span style="color: #933;">2px</span> <span style="color: #933;">-10px</span> <span style="color: #933;">6px</span> <span style="color: #cc00cc;">#FFDD33</span><span style="color: #00AA00;">,</span> <span style="color: #933;">2px</span> <span style="color: #933;">-15px</span> <span style="color: #933;">11px</span> <span style="color: #cc00cc;">#FF8800</span><span style="color: #00AA00;">,</span> <span style="color: #933;">2px</span> <span style="color: #933;">-15px</span> <span style="color: #933;">10px</span> <span style="color: #cc00cc;">#FF2200</span><span style="color: #00AA00;">;</span>color<span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">24px</span><span style="color: #00AA00;">;</span>font-family<span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;微软雅黑&quot;</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">&quot;宋体&quot;</span><span style="color: #00AA00;">,</span>Geneva<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100413/css3-text-shadow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery的Ajax使用笔记 转</title>
		<link>http://qlj.sh.cn/web/20100317/jquery-ajax-jieshao/</link>
		<comments>http://qlj.sh.cn/web/20100317/jquery-ajax-jieshao/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:35:18 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1030</guid>
		<description><![CDATA[jquery 1、代码简练、语义易懂、学习快速、文档丰富。 2、jQuery是一个轻量级的脚本，其代码非常小巧，最新版的java script包只有20K左右。 3、jQuery支持CSS1-CSS3,以及基本的xPath。 4、jQuery是跨浏览器的，它支持的浏览器包括IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+。 5、可以很容易的为jQuery扩展其他功能。 6、能将JS代码和HTML代码完全分离，便于代码和维护和修改。 7、插件丰富，除了jQuery本身带有的一些特效外，可以通过插件实现更多功能，如表单验证、tab导航、拖放效果、表格排序、 DataGrid，树形菜单、图像特效以及ajax上传等。 jQuery的设计会改变你写java script代码的方式，降低你学习使用JS操作网页的复杂度，提高网页JS开发效率，无论对于js初学者还 是资深专家，jQuery都将是您的首选。 jQuery适合于设计师、开发者以及那些还好者，同样适合用于商业开发，可以说jQuery适合任何java script应用的地方，可用于不同 的Web应用程序中。 使用方法 在需要使用JQuery的页面中引入JQuery的js文件即可。 例如： 引入之后便可在页面的任意地方使用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对象。 如：$(document.getElementById(“msg”))则为jquery对象，可以使用jquery的方法。 由于jquery对象本身是一个集合。所以如果jquery对象要转换为dom对象则必须取出其中的某一项，一般可通过索引取出。 如：$(“#msg”)[0]，$(“div”).eq(1)[0]，$(“div”).get()[1]，$(“td”)[5]这些都是dom对象，可以使用dom中的方法，但不能再使用 Jquery的方法。 以下几种写法都是正确的： $(“#msg”).html(); $(“#msg”)[0].innerHTML; $(“#msg”).eq(0)[0].innerHTML; $(“#msg”).get(0).innerHTML; 3、如何获取jQuery集合的某一项 对于获取的元素集合，获取其中的某一项（通过索引指定）可以使用eq或get(n)方法或者索引号获取，要注意，eq返回的是jquery对 象，而get(n)和索引返回的是dom元素对象。对于jquery对象只能使用jquery的方法，而dom对象只能使用dom的方法，如要获取第三 个 [...]]]></description>
			<content:encoded><![CDATA[<p>jquery<br />
1、代码简练、语义易懂、学习快速、文档丰富。<br />
2、jQuery是一个轻量级的脚本，其代码非常小巧，最新版的java script包只有20K左右。<br />
3、jQuery支持CSS1-CSS3,以及基本的xPath。<br />
4、jQuery是跨浏览器的，它支持的浏览器包括IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+。<br />
5、可以很容易的为jQuery扩展其他功能。<br />
6、能将JS代码和HTML代码完全分离，便于代码和维护和修改。<br />
7、插件丰富，除了jQuery本身带有的一些特效外，可以通过插件实现更多功能，如表单验证、tab导航、拖放效果、表格排序、<br />
DataGrid，树形菜单、图像特效以及ajax上传等。<br />
jQuery的设计会改变你写java script代码的方式，降低你学习使用JS操作网页的复杂度，提高网页JS开发效率，无论对于js初学者还<br />
是资深专家，jQuery都将是您的首选。<br />
jQuery适合于设计师、开发者以及那些还好者，同样适合用于商业开发，可以说jQuery适合任何java script应用的地方，可用于不同<br />
的Web应用程序中。<br />
<span id="more-1030"></span><br />
使用方法<br />
在需要使用JQuery的页面中引入JQuery的js文件即可。<br />
例如：<script type="text/java script" src="js/jquery.js"></script><br />
引入之后便可在页面的任意地方使用jQuery提供的语法。<br />
三、学习教程及参考资料<br />
请参照《jQuery中文API手册》和http://jquery.org.cn/visual/cn/index.xml<br />
推荐两篇不错的jquery教程：《jQuery的起点教程》和《使用 jQuery 简化 Ajax 开发》</p>
<p>四、语法总结和注意事项<br />
1、关于页面元素的引用<br />
通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法，且返回的对象为jquery对象<br />
（集合对象），不能直接调用dom定义的方法。<br />
2、jQuery对象与dom对象的转换<br />
只有jquery对象才能使用jquery定义的方法。注意dom对象和jquery对象是有区别的，调用方法时要注意操作的是dom对象还是jquery<br />
对象。<br />
普通的dom对象一般可以通过$()转换成jquery对象。<br />
如：$(document.getElementById(“msg”))则为jquery对象，可以使用jquery的方法。<br />
由于jquery对象本身是一个集合。所以如果jquery对象要转换为dom对象则必须取出其中的某一项，一般可通过索引取出。<br />
如：$(“#msg”)[0]，$(“div”).eq(1)[0]，$(“div”).get()[1]，$(“td”)[5]这些都是dom对象，可以使用dom中的方法，但不能再使用<br />
Jquery的方法。<br />
以下几种写法都是正确的：<br />
$(“#msg”).html();<br />
$(“#msg”)[0].innerHTML;<br />
$(“#msg”).eq(0)[0].innerHTML;<br />
$(“#msg”).get(0).innerHTML;<br />
3、如何获取jQuery集合的某一项<br />
对于获取的元素集合，获取其中的某一项（通过索引指定）可以使用eq或get(n)方法或者索引号获取，要注意，eq返回的是jquery对<br />
象，而get(n)和索引返回的是dom元素对象。对于jquery对象只能使用jquery的方法，而dom对象只能使用dom的方法，如要获取第三<br />
个
<div>元素的内容。有如下两种方法：<br />
$(“div”).eq(2).html();     //调用jquery对象的方法<br />
$(“div”).get(2).innerHTML;   //调用dom的方法属性<br />
4、同一函数实现set和get<br />
Jquery中的很多方法都是如此，主要包括如下几个：<br />
$(“#msg”).html();     //返回id为msg的元素节点的html内容。<br />
$(“#msg”).html(“<b>new content</b>“);<br />
//将“<b>new content</b>” 作为html串写入id为msg的元素节点内容中,页面显示粗体的new content<br />
$(“#msg”).text();     //返回id为msg的元素节点的文本内容。<br />
$(“#msg”).text(“<b>new content</b>“);<br />
//将“<b>new content</b>” 作为普通文本串写入id为msg的元素节点内容中,页面显示<b>new content</b><br />
$(“#msg”).height();     //返回id为msg的元素的高度<br />
$(“#msg”).height(“300&#8243;);   //将id为msg的元素的高度设为300<br />
$(“#msg”).width();     //返回id为msg的元素的宽度<br />
$(“#msg”).width(“300&#8243;);   //将id为msg的元素的宽度设为300<br />
$(“input”).val(“);   //返回表单输入框的value值<br />
$(“input”).val(“test”);   //将表单输入框的value值设为test<br />
$(“#msg”).click();   //触发id为msg的元素的单击事件<br />
$(“#msg”).click(fn);   //为id为msg的元素单击事件添加函数<br />
同样blur,focus,select,submit事件都可以有着两种调用方法<br />
5、集合处理功能<br />
对于jquery返回的集合内容无需我们自己循环遍历并对每个对象分别做处理，jquery已经为我们提供的很方便的方法进行集合的处理<br />
。<br />
包括两种形式：<br />
$(“p”).each(function(i){this.style.color=['#f00','#0f0','#00f'][i]})<br />
//为索引分别为0，1，2的p元素分别设定不同的字体颜色。<br />
$(“tr”).each(function(i){this.style.backgroundColor=['#ccc','#fff'][i%2]})<br />
//实现表格的隔行换色效果<br />
$(“p”).click(function(){alert($(this).html())})<br />
//为每个p元素增加了click事件，单击某个p元素则弹出其内容<br />
6、扩展我们需要的功能<br />
$.extend({<br />
   min: function(a, b){return a < b?a:b; },<br />
   max: function(a, b){return a > b?a:b; }<br />
});   //为jquery扩展了min,max两个方法<br />
使用扩展的方法（通过“$.方法名”调用）：<br />
alert(“a=10,b=20,max=”+$.max(10,20)+”,min=”+$.min(10,20));<br />
7、支持方法的连写<br />
所谓连写，即可以对一个jquery对象连续调用各种不同的方法。<br />
例如：<br />
$(“p”).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]});<br />
8、操作元素的样式<br />
主要包括以下几种方式：<br />
$(“#msg”).css(“background”);     //返回元素的背景颜色<br />
$(“#msg”).css(“background”,”#ccc”)   //设定元素背景为灰色<br />
$(“#msg”).height(300); $(“#msg”).width(“200&#8243;);   //设定宽高<br />
$(“#msg”).css({ color: “red”, background: “blue” });//以名值对的形式设定样式<br />
$(“#msg”).addClass(“select”);   //为元素增加名称为select的class<br />
$(“#msg”).removeClass(“select”);   //删除元素名称为select的class<br />
$(“#msg”).toggleClass(“select”);   //如果存在（不存在）就删除（添加）名称为select的class<br />
9、完善的事件处理功能<br />
Jquery已经为我们提供了各种事件处理方法，我们无需在html元素上直接写事件，而可以直接为通过jquery获取的对象添加事件。<br />
如：<br />
$(“#msg”).click(function(){alert(“good”)})   //为元素添加了单击事件<br />
$(“p”).click(function(i){this.style.color=['#f00','#0f0','#00f'][i]})<br />
//为三个不同的p元素单击事件分别设定不同的处理<br />
jQuery中几个自定义的事件：<br />
（1）hover(fn1,fn2)：一个模仿悬停事件（鼠标移动到一个对象上面及移出这个对象）的方法。当鼠标移动到一个匹配的元素上面<br />
时，会触发指定的第一个函数。当鼠标移出这个元素时，会触发指定的第二个函数。<br />
//当鼠标放在表格的某行上时将class置为over，离开时置为out。<br />
$(“tr”).hover(function(){<br />
$(this).addClass(“over”);<br />
},<br />
   function(){<br />
   $(this).addClass(“out”);<br />
});<br />
（2）ready(fn):当DOM载入就绪可以查询及操纵时绑定一个要执行的函数。<br />
$(document).ready(function(){alert(“Load Success”)})<br />
//页面加载完毕提示“Load Success”,相当于onload事件。与$(fn)等价<br />
（3）toggle(evenFn,oddFn): 每次点击时切换要调用的函数。如果点击了一个匹配的元素，则触发指定的第一个函数，当再次点击<br />
同一元素时，则触发指定的第二个函数。随后的每次点击都重复对这两个函数的轮番调用。<br />
   //每次点击时轮换添加和删除名为selected的class。<br />
   $(“p”).toggle(function(){<br />
     $(this).addClass(“selected”);<br />
   },function(){<br />
     $(this).removeClass(“selected”);<br />
   });<br />
（4）trigger(eventtype): 在每一个匹配的元素上触发某类事件。<br />
例如：<br />
   $(“p”).trigger(“click”);     //触发所有p元素的click事件<br />
（5）bind(eventtype,fn)，unbind(eventtype): 事件的绑定与反绑定<br />
从每一个匹配的元素中（添加）删除绑定的事件。<br />
例如：<br />
$(“p”).bind(“click”, function(){alert($(this).text());});   //为每个p元素添加单击事件<br />
$(“p”).unbind();   //删除所有p元素上的所有事件<br />
$(“p”).unbind(“click”)   //删除所有p元素上的单击事件<br />
10、几个实用特效功能<br />
其中toggle()和slidetoggle()方法提供了状态切换功能。<br />
如toggle()方法包括了hide()和show()方法。<br />
slideToggle()方法包括了slideDown()和slideUp方法。<br />
11、几个有用的jQuery方法<br />
$.browser.浏览器类型：检测浏览器类型。有效参数：safari, opera, msie, mozilla。如检测是否ie：$.browser.isie，是ie浏览<br />
器则返回true。<br />
$.each(obj, fn)：通用的迭代函数。可用于近似地迭代对象和数组（代替循环）。<br />
如<br />
$.each( [0,1,2], function(i, n){ alert( “Item #” + i + “: ” + n ); });<br />
等价于：<br />
var tempArr=[0,1,2];<br />
for(var i=0;i<tempArr.length;i++){<br />
   alert(“Item #”+i+”: “+tempArr[i]);<br />
}<br />
也可以处理json数据，如<br />
$.each( { name: “John”, lang: “JS” }, function(i, n){ alert( “Name: ” + i + “, Value: ” + 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 > 0 ? i + 1 : null; });<br />
tempArr内容为：[2,3]<br />
$.merge(arr1,arr2):合并两个数组并删除其中重复的项目。<br />
如：$.merge( [0,1,2], [2,3,4] )   //返回[0,1,2,3,4]<br />
$.trim(str)：删除字符串两端的空白字符。<br />
如：$.trim(”   hello, how are you?   “);   //返回”hello,how are you? “<br />
12、解决自定义方法或其他类库与jQuery的冲突<br />
很多时候我们自己定义了$(id)方法来获取一个元素，或者其他的一些js类库如prototype也都定义了$方法，如果同时把这些内容放<br />
在一起就会引起变量方法定义冲突，Jquery对此专门提供了方法用于解决此问题。<br />
使用jquery中的jQuery.noConflict();方法即可把变量$的控制权让渡给第一个实现它的那个库或之前自定义的$方法。之后应用<br />
Jquery的时候只要将所有的$换成jQuery即可，如原来引用对象方法$(“#msg”)改为jQuery(“#msg”)。<br />
如：<br />
jQuery.noConflict();<br />
// 开始使用jQuery<br />
jQuery(“div   p”).hide();<br />
// 使用其他库的 $()<br />
$(“content”).style.display = &#8216;none&#8217;;</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100317/jquery-ajax-jieshao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一个jquery-ajax post例子ajax 登陆</title>
		<link>http://qlj.sh.cn/web/20100317/a-jquery-ajax/</link>
		<comments>http://qlj.sh.cn/web/20100317/a-jquery-ajax/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:23:15 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1026</guid>
		<description><![CDATA[这个例子网上应该满多的 学习笔记 转载 index.html文件 &#60;html&#62; &#60;head&#62; &#60;title&#62;jQuery Ajax 实例演示&#60;/title&#62; &#60;/head&#62; &#60;script src=&#34;./js/jquery.js&#34; type=&#34;text/java script&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/java script&#34;&#62; $(document).ready(function(){//这个就是jQueryready ，它就像C语言的main 所有操作包含在它里面 $(&#34;#button_login&#34;).mousedown(function(){ login(); //点击ID为&#34;button_login&#34;的按钮后触发函数 login(); }); }); function login(){ //函数 login(); var username = $(&#34;#username&#34;).val();//取框中的用户名 var password = $(&#34;#password&#34;).val();//取框中的密码 $.ajax({ //一个Ajax过程 type: &#34;post&#34;, //以post方式与后台沟通 url : &#34;login.php&#34;, //与此php页面沟通 dataType:'json',//从php返回的值以 JSON方式 解释 data: 'username='+username+'&#38;password='+password, //发给php的数据有两项，分别是上面传来的u和p success: function(json){//如果调用php成功 [...]]]></description>
			<content:encoded><![CDATA[<p>这个例子网上应该满多的<br />
学习笔记 转载<br />
index.html文件</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jQuery Ajax 实例演示<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;./js/jquery.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/java script&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>  
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/java script&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
$(document).ready(function(){//这个就是jQueryready  ，它就像C语言的main 所有操作包含在它里面
    $(&quot;#button_login&quot;).mousedown(function(){ 
   login(); //点击ID为&quot;button_login&quot;的按钮后触发函数 login();
    });
});
function login(){ //函数 login();
 var username = $(&quot;#username&quot;).val();//取框中的用户名
 var password = $(&quot;#password&quot;).val();//取框中的密码
 $.ajax({ //一个Ajax过程  
   type: &quot;post&quot;,  //以post方式与后台沟通
   url : &quot;login.php&quot;, //与此php页面沟通
   dataType:'json',//从php返回的值以 JSON方式 解释
   data:  'username='+username+'<span style="color: #ddbb00;">&amp;password='+password, //发给php的数据有两项，分别是上面传来的u和p   </span>
<span style="color: #ddbb00;">   success: function(json){//如果调用php成功</span>
&nbsp;
<span style="color: #ddbb00;">                        //alert(json.username+'\n'+json.password);</span> //把php中的返回值（json.username）给 alert出来
&nbsp;
   $('#result').html(&quot;姓名:&quot; + json.username + &quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>密码:&quot; + json.password); //把php中的返回值显示在预定义的result
定位符位置 
&nbsp;
&nbsp;
                          }   
           });
&nbsp;
&nbsp;
&nbsp;
  //$.post()方式：  
  $('#test_post').mousedown(function (){  
    $.post(  
      'login.php',  
      {  
        username:$('#username').val(),  
        password:$('#password').val() 
      },  
      function (data) //回传函数  
      {  
        var myjson='';  
        eval('myjson=' + data + ';');  
        $('#result').html(&quot;姓名1:&quot; + myjson.username + &quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>密码1:&quot; + myjson.password);  
      }  
    );  
   }); 
&nbsp;
&nbsp;
&nbsp;
  //$.get()方式：  
  $('#test_get').mousedown(function ()  
  {  
    $.get(  
      'login.php',  
      {  
        username:$('#username').val(),  
        password:$('#password').val() 
      },  
      function(data) //回传函数  
      {  
        var myjson='';  
        eval(&quot;myjson=&quot; + data + &quot;;&quot;);  
        $('#result').html(&quot;姓名2:&quot; + myjson.username + &quot;<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>密码2:&quot; + myjson.password);   
      }  
    );  
  });  
&nbsp;
&nbsp;
&nbsp;
&nbsp;
 }
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;result&quot;</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;background:orange;border:1px solid red;width:300px;height:200px;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;formtest&quot;</span> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span> 
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;span<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>输入姓名:<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;username&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;username&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;span<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>输入密码:<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;button_login&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>ajax提交<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;test_post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>post提交<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;test_get&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>get提交<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
&nbsp;
&nbsp;
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>login.php文件</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">json_encode</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'username'</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'password'</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100317/a-jquery-ajax/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>看到5SING换了新的特效插件highslide</title>
		<link>http://qlj.sh.cn/web/20100312/highslide-js/</link>
		<comments>http://qlj.sh.cn/web/20100312/highslide-js/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 19:18:19 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[5sing]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=1015</guid>
		<description><![CDATA[觉得挺漂亮的 支持相册/图片 HTML 等 目前支持的游览器情况 IE 5.5 &#8211; 8.0 Firefox 1.5 &#8211; 3.5 Opera 8.5 &#8211; 10.5 Netscape 7.2 Safari 2.0 &#8211; 4.0 on Mac, 3.0 &#8211; 4.0 on Windows Google Chrome Konqueror 3.5 官方网站 http://highslide.com/ 使用方法 &#60;script type=&#34;text/javascript&#34; src=&#34;/highslide/highslide.js&#34;&#62;&#60;/script&#62; &#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;/highslide/highslide.css&#34; /&#62; &#60;script type=&#34;text/javascript&#34;&#62; // override Highslide settings here // instead of [...]]]></description>
			<content:encoded><![CDATA[<p>觉得挺漂亮的<br />
支持相册/图片 HTML 等</p>
<p>目前支持的游览器情况</p>
<p>IE 5.5 &#8211; 8.0<br />
Firefox 1.5 &#8211; 3.5<br />
Opera 8.5 &#8211; 10.5<br />
Netscape 7.2<br />
Safari 2.0 &#8211; 4.0 on Mac, 3.0 &#8211; 4.0 on Windows<br />
Google Chrome<br />
Konqueror 3.5</p>
<p><span id="more-1015"></span><br />
官方网站 http://highslide.com/<br />
使用方法</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;/highslide/highslide.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;link</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;/highslide/highslide.css&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    // override Highslide settings here
    // instead of editing the highslide.js file
    hs.graphicsDir = '/highslide/graphics/';
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>调用方法</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;images/full-image.jpg&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;highslide&quot;</span></span>
<span style="color: #009900;">        <span style="color: #000066;">onclick</span>=<span style="color: #ff0000;">&quot;return hs.expand(this)&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;images/thumbnail.jpg&quot;</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">&quot;Highslide JS&quot;</span></span>
<span style="color: #009900;">        <span style="color: #000066;">title</span>=<span style="color: #ff0000;">&quot;Click to enlarge&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;120&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;107&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100312/highslide-js/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS防止图片过大而撑破网页</title>
		<link>http://qlj.sh.cn/web/20100210/css-img-max-width/</link>
		<comments>http://qlj.sh.cn/web/20100210/css-img-max-width/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 07:59:13 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=983</guid>
		<description><![CDATA[部分文章内容过大 防止DIV 错位 在supersite的CSS里找到的 #textbody img{ width: expression(this.width &#62; 580 ? 580: true); max-width: 580px; }]]></description>
			<content:encoded><![CDATA[<p>部分文章内容过大<br />
防止DIV 错位<br />
在supersite的CSS里找到的</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">#textbody img{ width: expression(this.width &gt; 580 ? 580: true); max-width: 580px;  }</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100210/css-img-max-width/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GOOGLE真的会撤出中国吗？</title>
		<link>http://qlj.sh.cn/web/20100114/google-cn/</link>
		<comments>http://qlj.sh.cn/web/20100114/google-cn/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 18:19:31 +0000</pubDate>
		<dc:creator>qlj</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://qlj.sh.cn/?p=979</guid>
		<description><![CDATA[今天逛论坛 看到说GOOGLE要撤出中国 难以置信 立即GOOGLE搜索了下 相关的内容出现了不少 出大事了 传言都说GOOGLE在官方BLOG上说GOOGLE考虑是否撤出中国市场 立即翻越长城。。找到了头条 A new approach to China 找来了中文的大致翻译 转载 Google在自己的博客发表声明，他们在去年12月中期发现有很多来自中国大陆的有针对性的攻击，导致知识产权被盗。 首先，攻击并不是只针对Google，至少还有另外20家来自各行各业的公司都受到了攻击，包括互联网、金融、科技、媒体和化工等等行业，Google也提醒了这些公司，并与美国当局进行合作。 其次，Google有足够的证据证明这些攻击者的目标是人权活动者的Gmail帐户，根据Google的调查攻击者最后还是没有获得他们想要的东西。只有两个Gmail帐户被攻陷，但只取得了有限的数据（比如帐户创建日期）和邮件的主题，而邮件内容都没有泄露。 第三，作为这次调查的一部分，Google发现大量在中国致力于人权事业的美国、中国和欧洲的Gmail用户都经常受到攻击，在Google的保护下都完好无损，但也许有用户在收到钓鱼邮件和恶意邮件后电脑会中毒。 Google再次提到自己在2006年发布google.cn是为了让更多中国人民可以享受到Google的服务，Google也可以容忍一定程度的审查。2006年Google曾经提到说他们会仔细监视中国大陆的情况，包括新的法律和对Google服务的限制，如果Google认为无法达到他们认为的底线，那么会重新考虑进入中国的问题。 关键的来了：Google今天决定不想再继续审查google.cn的搜索结果，接下来几周里他们将与中国政府讨论在法律框架下做一个不过滤不审查的搜索引擎！如果不能做到这一点的话，Google认为这就意味着他们要关闭google.cn和在中国大陆的办公室。 这个决定确实很难下，但Google认为这样做的潜在意义非常重大，这完全是美国总部的考虑，而跟中国大陆的谷歌中国员工没有任何关系，他们已经非常努力的在做好足够成功的google.cn了。 这次 GOOGLE怒了 GOOGLE也无奈，虽然不希望看到这样的结局。但是GOOGLE的做法还是支持的，希望有一种妥善的解决方式 不然将来只能翻.墙寻找自己需要的东西 GOOGLE的服务很方便 很希望GOOGLE在中国有一个很好的发展。 希望GOOGLE能理性的解决好，引用“中国有五千年的历史，Google在中国市场的成功也有五千年的耐心” 不过GOOGLE这次事件。让我更放心使用GOOGLE的服务。。]]></description>
			<content:encoded><![CDATA[<p>今天逛论坛<br />
看到说GOOGLE要撤出中国<br />
难以置信<br />
立即GOOGLE搜索了下<br />
相关的内容出现了不少<br />
出大事了<br />
<span id="more-979"></span><br />
传言都说GOOGLE在官方BLOG上说GOOGLE考虑是否撤出中国市场<br />
立即翻越长城。。找到了头条<br />
<a href="http://googleblog.blogspot.com/2010/01/new-approach-to-china.html">A new approach to China</a><br />
找来了中文的大致翻译<br />
转载</p>
<blockquote><p>
Google在自己的博客发表声明，他们在去年12月中期发现有很多来自中国大陆的有针对性的攻击，导致知识产权被盗。<br />
首先，攻击并不是只针对Google，至少还有另外20家来自各行各业的公司都受到了攻击，包括互联网、金融、科技、媒体和化工等等行业，Google也提醒了这些公司，并与美国当局进行合作。<br />
其次，Google有足够的证据证明这些攻击者的目标是人权活动者的Gmail帐户，根据Google的调查攻击者最后还是没有获得他们想要的东西。只有两个Gmail帐户被攻陷，但只取得了有限的数据（比如帐户创建日期）和邮件的主题，而邮件内容都没有泄露。<br />
第三，作为这次调查的一部分，Google发现大量在中国致力于人权事业的美国、中国和欧洲的Gmail用户都经常受到攻击，在Google的保护下都完好无损，但也许有用户在收到钓鱼邮件和恶意邮件后电脑会中毒。<br />
Google再次提到自己在2006年发布google.cn是为了让更多中国人民可以享受到Google的服务，Google也可以容忍一定程度的审查。2006年Google曾经提到说他们会仔细监视中国大陆的情况，包括新的法律和对Google服务的限制，如果Google认为无法达到他们认为的底线，那么会重新考虑进入中国的问题。<br />
关键的来了：Google今天决定不想再继续审查google.cn的搜索结果，接下来几周里他们将与中国政府讨论在法律框架下做一个不过滤不审查的搜索引擎！如果不能做到这一点的话，Google认为这就意味着他们要关闭google.cn和在中国大陆的办公室。<br />
这个决定确实很难下，但Google认为这样做的潜在意义非常重大，这完全是美国总部的考虑，而跟中国大陆的谷歌中国员工没有任何关系，他们已经非常努力的在做好足够成功的google.cn了。
</p></blockquote>
<p>这次<br />
GOOGLE怒了<br />
GOOGLE也无奈，虽然不希望看到这样的结局。但是GOOGLE的做法还是支持的，希望有一种妥善的解决方式<br />
不然将来只能翻.墙寻找自己需要的东西<br />
GOOGLE的服务很方便<br />
很希望<a href="http://qlj.sh.cn/tag/google/">GOOGLE</a>在中国有一个很好的发展。<br />
希望GOOGLE能理性的解决好，引用“中国有五千年的历史，Google在中国市场的成功也有五千年的耐心”<br />
不过GOOGLE这次事件。让我更放心使用GOOGLE的服务。。</p>
]]></content:encoded>
			<wfw:commentRss>http://qlj.sh.cn/web/20100114/google-cn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

