<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0060)http://blog.csdn.net/ejzhang/archive/2009/09/05/4523045.aspx -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>jQuery 入门 - ejzhang的专栏 - CSDN博客</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT type=text/javascript>
try { document.domain = "csdn.net"; } catch (ex) { }
</SCRIPT>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/jquery.js"
type=text/javascript></SCRIPT>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/jquery.highlighter.js"
type=text/javascript></SCRIPT>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/highlighter.js"
type=text/javascript></SCRIPT>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/common.js"
type=text/javascript></SCRIPT>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/AreaCounter.js"
type=text/javascript></SCRIPT>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/feedback.js"
type=text/javascript></SCRIPT>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/relatedarticle.js"
type=text/javascript></SCRIPT>
<LINK media=all href="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/blue_1.css"
type=text/css rel=stylesheet><LINK media=all
href="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/csdn_favbykimi.css" type=text/css
rel=stylesheet><LINK href="http://profile.csdn.net/ejzhang/picture/1.ico"
rel="Shortcut Icon"><LINK title=RSS
href="http://feeds.feedsky.com/csdn.net/ejzhang" type=application/rss+xml
rel=alternate>
<META content="MSHTML 6.00.2900.5583" name=GENERATOR></HEAD>
<BODY id=defaultuser>
<DIV id=csdnblog_allwrap>
<DIV id=csdnblog_midwrap>
<SCRIPT src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/pub_topnav.js"
type=text/javascript></SCRIPT>
<SCRIPT language=javascript type=text/javascript>
// 页面加载完毕,脚本开始执行
$(document).ready(function() {
ChangeUserState();
$("#notice").find("a").click(HideNoticeInfo);
});
var userName = getCookie("activeUserName");
var isGuest = !userName || userName == "Guest";
var delay = 20 * 60 * 1000;
var timer = 0;
function ChangeUserState() {
clearInterval(timer);
if (isGuest) {
HideNoticeInfo();
}
else {
RefreshNoticeInfo();
timer = setInterval( RefreshNoticeInfo, delay);
}
}
var apiUrl = "/!handler/NoticeHandler.ashx?jsoncallback=?";
function RefreshNoticeInfo() {
$.getJSON(apiUrl + "&_t=" + Math.random(), function(result) {
if (result.noticeNum) {
newNoticeCount = result.noticeNum;
if (newNoticeCount <= 0) {
$("#notice").hide();
}
else {
$("#noticeCount").text(newNoticeCount);
$("#notice").show();
}
}
});
}
function HideNoticeInfo() {
$("#notice").hide();
}
</SCRIPT>
<DIV id=csdnblog_header>
<H1><A href="http://blog.csdn.net/ejzhang">ejzhang的专栏</A></H1>
<H2></H2>
<UL id=personalnav>
<LI id=notice style="DISPLAY: none"><SPAN class=newnotice><A class=red
onclick=LogClickCount(this,216); href="http://hi.csdn.net/space-notice.html"
target=_blank><SPAN id=noticeCount></SPAN>条新通知</A></SPAN> </LI>
<LI style="DISPLAY: none"><A id=a_login
href="http://passport.csdn.net/UserLogin.aspx">登录</A> </LI>
<LI style="DISPLAY: none"><A id=a_register
href="http://passport.csdn.net/CSDNUserRegister.aspx" target=_blank>注册</A>
</LI>
<LI style="DISPLAY: none"><A id=a_welcome href="http://hi.csdn.net/"
target=_blank>欢迎</A> </LI>
<LI style="DISPLAY: none"><A id=a_exit
href="http://writeblog.csdn.net/Signout.aspx">退出</A> </LI>
<LI style="DISPLAY: none"><A id=a_myblog href="http://blog.csdn.net/">我的博客</A>
</LI>
<LI style="DISPLAY: none"><A id=a_configure
href="http://writeblog.csdn.net/configure.aspx" target=_blank>配置</A> </LI>
<LI style="DISPLAY: none"><A id=a_postedit
href="http://writeblog.csdn.net/PostEdit.aspx" target=_blank>写文章</A> </LI>
<LI style="DISPLAY: none"><A id=a_postlist
href="http://writeblog.csdn.net/PostList.aspx" target=_blank>文章管理</A> </LI>
<LI><A id=a_bloghome href="http://blog.csdn.net/" target=_blank>博客首页</A>
</LI></UL>
<UL id=blogsearchsty>
<LI><INPUT class=bolgsearch id=inputSearch> </LI>
<LI class=selectsty><SELECT id=Search_ddlSearchScope
name=Search:ddlSearchScope> <OPTION value=all selected>全站</OPTION> <OPTION
value=ejzhang>当前博客</OPTION></SELECT> </LI>
<LI><INPUT class=bolggobtn id=buttonSearch type=button value=搜索> </LI></UL>
<UL id=menu>
<LI><A href="http://hi.csdn.net/ejzhang" target=_blank>空间</A> </LI>
<LI><A class=on href="http://blog.csdn.net/ejzhang">博客</A> </LI>
<LI><A href="http://hi.csdn.net/!s/friend/list/ejzhang" target=_blank>好友</A>
</LI>
<LI><A href="http://hi.csdn.net/!s/album/list/ejzhang" target=_blank>相册</A>
</LI>
<LI><A class=last href="http://hi.csdn.net/!s/wall/to/ejzhang"
target=_blank>留言</A> </LI></UL></DIV>
<SCRIPT type=text/javascript>
var CurrentUserName = 'ejzhang';
</SCRIPT>
<DIV id=csdnblog_sidebar>
<DIV class=gutter>
<DIV class=aboutauthor>
<DL>
<DT>用户操作
<DD class=middle><A href="http://hi.csdn.net/!s/wall/to/ejzhang"
target=_blank>[留言]</A> <A href="http://hi.csdn.net/!s/msg/to/ejzhang"
target=_blank>[发消息]</A> <A
href="http://hi.csdn.net/!s/friend/add/ejzhang" target=_blank>[加为好友]</A>
<SPAN id=userInfo></SPAN><SPAN id=SubscriptionList>
<DT>订阅我的博客
<DD><A href="http://feeds.feedsky.com/csdn.net/ejzhang"><IMG alt=XML聚合
src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/gif.gif" border=0> </A>
<A href="http://feeds.feedsky.com/csdn.net/ejzhang" target=_blank><IMG
alt=FeedSky src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/feedsky.gif" border=0>
</A>
<DD><A
href="http://www.xianguo.com/subscribe.php?url=http://feeds.feedsky.com/csdn.net/ejzhang"
target=_blank><IMG alt=订阅到鲜果
src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/rss_xianguo.jpg" border=0> </A>
<DD><A
href="http://fusion.google.com/add?feedurl=http://feeds.feedsky.com/csdn.net/ejzhang"
target=_blank><IMG alt=订阅到Google
src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/rss_google.gif" border=0> </A>
<DD><A
href="http://www.zhuaxia.com/add_channel.php?url=http://feeds.feedsky.com/csdn.net/ejzhang"
target=_blank><IMG alt=订阅到抓虾
src="jQuery 入门 - ejzhang的专栏 - CSDN博客.files/rss_zhuaxia.gif" border=0>
</A></SPAN>
<DT><SPAN class=floatright style="DISPLAY: none"><A class=a_edit
href="http://writeblog.csdn.net/configure.aspx"
target=_blank>[编辑]</A></SPAN>ejzhang的公告
<DD>
<DT><SPAN class=floatright style="DISPLAY: none"><A class=a_edit
href="http://writeblog.csdn.net/EditCategories.aspx?catID=1"
target=_blank>[编辑]</A></SPAN>文章分类
<DD>
<DIV class=publiclist_sidebar>
<UL></UL></DIV>
<DT>存档
<DD>
<DIV class=publiclist_sidebar>
<UL>
<LI><A
href="http://blog.csdn.net/ejzhang/archive/2010/03.aspx">2010年03月(2)</A>
<LI><A
href="http://blog.csdn.net/ejzhang/archive/2010/02.aspx">2010年02月(1)</A>
<LI><A
href="http://blog.csdn.net/ejzhang/archive/2010/01.aspx">2010年01月(4)</A>
<LI><A
href="http://blog.csdn.net/ejz