<?xml version="1.0" encoding="UTF-8"?>
  <feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html"><![CDATA[E龙]]></title>
  <subtitle type="html"><![CDATA[书山有路勤为径 学海无涯苦作舟]]></subtitle>
  <id>http://www.it-long.com/</id>
  <link rel="alternate" type="text/html" href="http://www.it-long.com/" /> 
  <link rel="self" type="application/atom+xml" href="http://www.it-long.com/atom.asp" /> 
  <generator uri="http://www.pjhome.net/" version="2.8">PJBlog3</generator> 
  <updated>2011-01-20T17:56:36+08:00</updated>

  <entry>
	  <title type="html"><![CDATA[jquery 简单的输入框提示]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=13" label="JS" /> 
	  <updated>2011-01-20T17:56:36+08:00</updated>
	  <published>2011-01-20T17:56:36+08:00</published>
		  <summary type="html"><![CDATA[简单的输入框提示，用jquery写的，主要是进入页面后显示提示信息，隐藏信息，失去焦点后，是否显示提示信息等状态。<br/><br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code61954);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code61954><br/><br/>$(document).ready(function(){<br/> $(&#34;.keyword&#34;).val(&#34;请输入关键词&#34;)<br/> $(&#34;.keyword&#34;).click(function(){if($(this).val()==&#34;请输入关键词&#34;){$(this).val(&#34;&#34;)}})<br/> $(&#34;.keyword&#34;).focusout(function(){if($(this).val()&lt;=0){$(this).val(&#34;请输入关键词&#34;)}})<br/>})<br/><br/></div></div><br/><br/><br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/139.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=139</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[简易的jQuery 表单认证]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=13" label="JS" /> 
	  <updated>2010-09-19T17:31:28+08:00</updated>
	  <published>2010-09-19T17:31:28+08:00</published>
		  <summary type="html"><![CDATA[随手写了个简单的jQuery 的验证，还有很大的更改空间，alt为说明文字，例如姓名<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code49396);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code49396>&lt;input type=&#34;text&#34; class=&#34;yz&#34; alt=&#34;姓名&#34;/&gt;</div></div><br/>jQuery 代码<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code44460);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code44460><br/>$(document).ready(function(){<br/>&#160;&#160;&#160;&#160;$(&#34;.yz&#34;).focusout(function(){<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;var name=$(this).attr(&#34;alt&#34;);<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if($(this).val().length&lt;=0)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;{<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;alert(name+&#34;不能为空&#34;)<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;})<br/>&#160;&#160;&#160;&#160;<br/>&#160;&#160;&#160;&#160;})<br/></div></div>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/137.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=137</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[jQuery图片垂直左右居中-自适应图片大小]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=13" label="JS" /> 
	  <updated>2010-09-16T14:52:32+08:00</updated>
	  <published>2010-09-16T14:52:32+08:00</published>
		  <summary type="html"><![CDATA[心血来潮写了个简单的jQuery图片垂直左右居中，自适应图片大小<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code25897);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code25897><br/>$(document).ready(function(){<br/>&#160;&#160;&#160;&#160;var img_w=$(&#34;.img img&#34;).width()/2<br/>&#160;&#160;&#160;&#160;var img_h=$(&#34;.img img&#34;).height()/2<br/>&#160;&#160;&#160;&#160;var img_wrap_w=$(&#34;.img&#34;).width()/2<br/>&#160;&#160;&#160;&#160;var img_wrap_h=$(&#34;.img&#34;).height()/2<br/>&#160;&#160;&#160;&#160;$(&#34;.img img&#34;).css(&#34;margin-left&#34;,img_wrap_w-img_w)<br/>&#160;&#160;&#160;&#160;$(&#34;.img img&#34;).css(&#34;margin-top&#34;,img_wrap_h-img_h)<br/>&#160;&#160;&#160;&#160;})<br/></div></div>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/136.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=136</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[用jQuery写的三栏等高]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=13" label="JS" /> 
	  <updated>2010-09-14T10:51:16+08:00</updated>
	  <published>2010-09-14T10:51:16+08:00</published>
		  <summary type="html"><![CDATA[三栏等高写起来问题很多，纯用css写的话，有很多兼容问题要改，现在用jQuery写了一个，支持无限级等高，代码如下<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code87362);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code87362><br/>$(document).ready(function(){<br/>&#160;&#160;&#160;&#160;var a_height=$(&#34;.a&#34;).height()<br/>&#160;&#160;&#160;&#160;var b_height=$(&#34;.b&#34;).height()<br/>&#160;&#160;&#160;&#160;var c_height=$(&#34;.c&#34;).height()<br/>&#160;&#160;&#160;&#160;function array_max( ){return this.concat().sort(function(a,b){return b-a})[0]; }<br/>&#160;&#160;&#160;&#160;Array.prototype.max = array_max; <br/>&#160;&#160;&#160;&#160;var x =[a_height,b_height,c_height];<br/>&#160;&#160;&#160;&#160;var y = x.max( ); <br/>&#160;&#160;&#160;&#160;$(&#34;.a&#34;).css(&#34;height&#34;,y)<br/>&#160;&#160;&#160;&#160;$(&#34;.b&#34;).css(&#34;height&#34;,y)<br/>&#160;&#160;&#160;&#160;$(&#34;.c&#34;).css(&#34;height&#34;,y)<br/>&#160;&#160;&#160;&#160;})<br/><br/></div></div>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/134.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=134</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[FlashFXP v3.7.9 注册码]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=8" label="My Life" /> 
	  <updated>2010-08-30T18:19:05+08:00</updated>
	  <published>2010-08-30T18:19:05+08:00</published>
		  <summary type="html"><![CDATA[-------- FlashFXP Registration Data START --------<br/>FLASHFXPwgBloAF1wgAAAAC7W5MNJwTnsl8EkBtRYhwaTGRKIIEcBZm8Yq4KNEoIpQ846TKQAcccWD4Lot8UsdLbAgj0OBA8cj8x4yfL0n2w9PGEAv8P+lpdkS+kQxBAiJRai893WEztek3c+slUSMGq3/Q58Nk1mrKlx5Y8jnEIPhzbBeXkzwLtdErddDdH0yGf2rqzmnnArJTs0tdOcn0kIG6L5zJ80fqGxGotNx7SrFzgu1XnuTKnsnzr/H9/Ig0A<br/>--------&nbsp;&nbsp;FlashFXP Registration Data END&nbsp;&nbsp;--------<br/>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/133.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=133</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[js随机广告]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=13" label="JS" /> 
	  <updated>2010-08-10T11:11:21+08:00</updated>
	  <published>2010-08-10T11:11:21+08:00</published>
		  <summary type="html"><![CDATA[最近工作需要制作随机banner的效果，最先写了一个<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code75613);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code75613><br/>$(document).ready(function(){ <br/>var how_many_banner=2;<br/>var now= new Date();<br/>var sec=now.getSeconds();<br/>var banner=sec % how_many_banner;<br/>if(banner==0){<br/>&#160;&#160;&#160;&#160;$(&#34;.banner_1&#34;).css(&#34;display&#34;, &#34;block&#34;)<br/>&#160;&#160;&#160;&#160;}<br/>else{<br/>&#160;&#160;&#160;&#160;$(&#34;.banner_2&#34;).css(&#34;display&#34;, &#34;block&#34;)<br/>&#160;&#160;&#160;&#160;}<br/>})<br/></div></div><br/>但是需要载入jQuery库，效率有些低。<br/>昨天写了一个原生的JavaScript代码，不过需要在body写入<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code14325);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code14325><br/>onload=&#34;函数名();&#34;<br/></div></div><br/>广告全部写在html里，css设置广告的display为none;，广告的ID为banner_加上广告的顺序<br/>js代码如下<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code24747);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code24747><br/>&lt;script type=&#34;text/javascript&#34;&gt;<br/>function(banner){<br/>n=99<br/>banner=Math.floor(Math.random()*n+1)<br/>document.getElementById(&#34;banner_&#34;+banner).style.display = &#34;block&#34;;<br/>}<br/>&lt;/script&gt;<br/></div></div><br/>其中n为广告的数量。]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/132.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=132</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[css中字体与英文]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=3" label="CSS" /> 
	  <updated>2010-06-28T12:12:25+08:00</updated>
	  <published>2010-06-28T12:12:25+08:00</published>
		  <summary type="html"><![CDATA[黑体：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SimHei<br/>宋体：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SimSun<br/>新宋体：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NSimSun<br/>仿宋：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FangSong<br/>楷体：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;KaiTi<br/>仿宋_GB2312：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FangSong_GB2312<br/>楷体_GB2312：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; KaiTi_GB2312&nbsp;&nbsp;<br/>微软雅黑体：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Microsoft YaHei]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/131.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=131</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[LeapFTP 3.0注册码]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=12" label="Literature" /> 
	  <updated>2010-06-11T12:56:41+08:00</updated>
	  <published>2010-06-11T12:56:41+08:00</published>
		  <summary type="html"><![CDATA[<div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code23047);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code23047><br/>—-LEAPFTP 3.x LICENSE—-<br/><br/>user=www.cnzz.cc<br/>company=FiGHTiNG FOR FUN<br/><br/>key=zBySPvMfL7BK3lTtLKrR3vWR<br/>bRksBfOtj624oBh9ApAYcCFYVPt3<br/>HxhfqUO7uFTrzpAZ7G4wrkklsXFX<br/>aigpYUTAdVJ8XbFAKdn1W1aVtaAR<br/>sJx0+hvvfVDC9+RdhEkBrL7Nfeys<br/>YckjQ1Sd1IvvNKZPwvNkYwVVr6K9<br/>cZzmkY2CJ2yLQ8U8EjYLdeukEi91<br/>PU/Ccr0n5LZAyA4sRkyK4KCuwAQA<br/>1YoNOkBXoLmjoPiL1H4iYTUAfyTn<br/>4c/bTtAFMFWqVcM/sMtstohVT1KU<br/>ljoSRCnRm8UaRdW/mkKoF/yP3N69<br/>MMp5ey4rd1s3FnL/<br/><br/>—-LEAPFTP 3.x LICENSE—-<br/></div></div>]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/130.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=130</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[硕思闪客精灵注册码]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=12" label="Literature" /> 
	  <updated>2010-06-09T18:36:41+08:00</updated>
	  <published>2010-06-09T18:36:41+08:00</published>
		  <summary type="html"><![CDATA[Name: Registered<br/>Code: 031U4A-K03QAX-6YDQBB-JTHN2J-2KEUCV-4MNAD0-KT9BVV-QN3B1W-HDJUZA-0AWPT8-6HWBJR-UBZYMK]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/129.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=129</id>
  </entry>	
		
  <entry>
	  <title type="html"><![CDATA[自己写的隔行换色]]></title>
	  <author>
		 <name>杨兴龙</name>
		 <uri>http://www.it-long.com/</uri>
		 <email>yangxinglong@126.com</email>
	  </author>
	  <category term="" scheme="http://www.it-long.com/default.asp?cateID=13" label="JS" /> 
	  <updated>2010-05-25T12:29:49+08:00</updated>
	  <published>2010-05-25T12:29:49+08:00</published>
		  <summary type="html"><![CDATA[好久没写东西了，今天自己写了个jQuery的隔行换色，超简单，jQuery果然强悍<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code70859);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code70859><br/>$(function(){ <br/>&#160;&#160;&#160;&#160;$(&#34;li:even&#34;).addClass(&#34;even&#34;)<br/>&#160;&#160;&#160;&#160;$(&#34;li&#34;).hover(<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;function () {<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;$(this).addClass(&#34;hover&#34;);<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;},<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;function () {<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;$(this).removeClass(&#34;hover&#34;);<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;}<br/>&#160;&#160;&#160;&#160;);<br/>&#160;&#160;&#160;&#160;$(&#34;li&#34;).toggle(<br/>&nbsp;&nbsp;function () {<br/>&nbsp;&nbsp;&nbsp;&nbsp;$(this).addClass(&#34;click&#34;);<br/>&nbsp;&nbsp;},<br/>&nbsp;&nbsp;function () {<br/>&nbsp;&nbsp;&nbsp;&nbsp;$(this).removeClass(&#34;click&#34;);<br/>&nbsp;&nbsp;}<br/>);<br/>})<br/></div></div><br/>根据需要写id或class限定，也可以用于表格，class可以自己改<br/>我随意添加了几个class<br/><div class="UBBPanel codePanel"><div class="UBBTitle"><a onClick="copycode(code26661);" style="float:right;cursor: pointer;font-weight: normal; font-style: normal">复制内容到剪贴板</a><img src="http://www.it-long.com/images/code.gif" style="margin:0px 2px -3px 0px;" alt="程序代码"/> 程序代码</div><div class="UBBContent" id=code26661><br/>.even{ background-color:red}<br/>ul{padding:0px;margin:0px;}<br/>li{ ist-style-type:none; height:40px; width:100px; margin-top:4px;border:1px solid #999;}<br/>.hover{ background:#CCC}<br/>.click{ background-color:#0F3}<br/></div></div><br/>js可以直接用jQuery1.3.2即可]]></summary>
	  <link rel="alternate" type="text/html" href="http://www.it-long.com/article/128.htm" /> 
	  <id>http://www.it-long.com/default.asp?id=128</id>
  </entry>	
		
</feed>

