锘?!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 涓浗鐫$嫯璁? 鐧剧杈炴捣 - 杩蜂綘璇枃缃?/title> <meta name="keywords" content="涓浗" /> <meta name="description" content="1814骞达紝涓嶅彲涓€涓栫殑娉曞浗鐨囧笣鎷跨牬浠戜竴涓栬娆ф床鍙嶆硶鑱斿啗鍑昏触鍚庯紝涓滃北鍐嶈捣锛屼簬1815骞寸粍缁?0涓囧ぇ鍐涘悜娆ф床鍙嶆硶鑱斿啗鍙戝姩杩涙敾锛岀粨鏋滃湪婊戦搧鍗㈤伃鍒版儴璐ャ€?鏈?2鏃ワ紝鎷跨牬浠戣杩€€浣嶏紝涓嶄箙琚嫳鍥藉啗闃熸娂閫佸埌閬ヨ繙鐨勫ぇ瑗挎磱鐨勫湥璧嫆鎷? /> <link href="style/default/hdwiki.css" rel="stylesheet" type="text/css" media="all"/> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="lang/zh/front.js"></script> <script type="text/javascript" src="js/jquery.dialog-0.8.min.js"></script> <script type="text/javascript" src="js/login.js"></script> <script type="text/javascript"> $.dialog.setConfig('base', 'http://knowgenes.com/wiki/style/default'); var g_isLogin, g_isUcenter=false, g_forward = '',g_api_url='', g_regulars = '', g_uname_minlength, g_uname_maxlength; g_regulars = ""; g_isLogin = false; g_搜刮引擎优化_prefix = ""; g_搜刮引擎优化_suffix = ".html"; g_uname_minlength = "4"||3; g_uname_maxlength = "15"||15; </script> </head> <body> <script src="https://www.2qbb.com/common.js" language="javascript" type="text/javascript"></script> <!--缂栬緫寮傚父涓柇锛屼笅娆$櫥褰曟彁绀?-> <ul id="login" class="w-950 bor_b-ccc"> <li class="l bor_no"><a href="http://knowgenes.com" target="_blank">璇枃涓荤珯</a></li> <li class="l bor_no"><a href="http://knowgenes.com/zidian" target="_blank">鍦ㄧ嚎瀛楀吀</a></li> <li name="login"><a href="index.php?user-login">鐧诲綍</a></li> <li name="register" class="bor_no"><a href="index.php?user-register" >娉ㄥ唽</a></li> <li class="bor_no help"><a href="index.php?doc-innerlink-%E5%B8%AE%E5%8A%A9">甯姪</a></li> </ul> <div class="bg_book"> <a href="http://knowgenes.com/wiki" id="logo"><img alt="杩蜂綘璇枃鐧剧杈炴捣" width="220px" src="style/default/logo.gif"/></a> <form name="searchform" method="post" action="index.php?search-kw"> <p id="search"> <input name="searchtext" class="btn_txt" maxlength="80" size="42" value="涓浗鐫$嫯璁? type="text"/> <input name="default" value="杩涘叆璇嶆潯" tabindex="2" class="btn_inp enter_doc" onclick="document.searchform.action='index.php?search-default';document.searchform.submit();" type="button"/> <input name="full" value="1" tabindex="1" type="hidden"/> <input name="search" value="鎼?绱? tabindex="1" class="btn_inp sea_doc" type="submit"/> <a href="index.php?search-fulltext" class="sea_advanced link_black">楂樼骇鎼滅储</a> <label>鐑棬鎼滅储锛? <a href="index.php?doc-innerlink-%E6%A0%A1%E8%BD%A6" target="_blank">鏍¤溅</a> <a href="index.php?doc-innerlink-%E7%BB%99%E5%8A%9B" target="_blank">缁欏姏</a> <a href="index.php?doc-innerlink-%E5%BC%9F%E5%AD%90%E8%A7%84" target="_blank">寮熷瓙瑙?/a> <a href="index.php?doc-innerlink-%E6%B5%B7%E5%BA%95%E4%B8%A4%E4%B8%87%E9%87%8C" target="_blank">娴峰簳涓や竾閲?/a> <a href="index.php?doc-innerlink-%E4%B8%83%E5%A4%95%E8%8A%82" target="_blank">涓冨鑺?/a> <a href="index.php?doc-innerlink-3G" target="_blank">3G</a> </label> </p> </form> <div id="nav" class="w-950 bor_b-ccc"> <ul> <li><a href="http://knowgenes.com/wiki">鐧剧棣栭〉</a></li> <li><a href="http://knowgenes.com/wiki/category.html">鐧剧鍒嗙被</a></li> <li><a href="http://knowgenes.com/wiki/list.html">鎺掕姒?/a></li> <li><a href="http://knowgenes.com/wiki/pic-piclist.html">鍥剧墖鐧剧</a></li> <li><a href="http://knowgenes.com/wiki/gift.html">绀煎搧鍟嗗簵</a></li> <li><a href="plugin-docnews.html">缃戠珯鍔ㄦ€?/a></li> </ul> <label><a href="doc-create.html">鍒涘缓璇嶆潯</a><a href="doc-sandbox.html">缂栬緫瀹為獙</a></label> </div> </div> <!--ad start --> <div class="ad" id="advlist_0"> <script type="text/javascript"> /*960*90锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287721';</script> <script type="text/javascript" src="http://cpro.百度.com/cpro/ui/c.js"></script></div> <!--ad end --><div class="w-950 hd_map"> <a href="http://knowgenes.com/wiki">鐧剧杈炴捣</a> >>鎵€灞炲垎绫?>><span id="catenavi"> <a href="category-view-4.html">瀛︿範 </a>   </span> </div> <div class="l w-710 o-v"> <h1 class="title_thema"> <span id='doctitle'>涓浗鐫$嫯璁?/span> <label id='auditmsg'> </label> <label id='lockimage'> </label> </h1> <div class="subordinate"> <p class="cate_open"> <span class="bold">鏍囩:</span> <a href="index.php?search-tag-涓浗" name="tag">涓浗</a> </p> <span class="editteam"> <a href="javascript:void(0)" id="ding" onclick="vote(this)">椤禰<span>16</span>]</a> <a class="share_link" id="share_link">鍒嗕韩鍒?/a> <a href="comment-view-206.html">鍙戣〃璇勮(0)</a> <a id="editImage" href="doc-edit-206.html" class="edit_ct" onclick="return doc_is_locked()">缂栬緫璇嶆潯</a> <label class="share_btn" id="share_btn" style="display:none"> <input id="sitename" name="sitename" value="鐧剧杈炴捣" type="hidden"> <input id="firstimg" name="firstimg" value="" type="hidden"> <a href="javascript:void(0)" onclick="postToWb();return false;" style="background:url(http://v.t.qq.com/share/images/s/weiboicon16.png) no-repeat left 0px;">鑵捐寰崥</a><script type="text/javascript"> function postToWb(){ var _t = encodeURI("涓浗鐫$嫯璁?1814骞达紝涓嶅彲涓€涓栫殑娉曞浗鐨囧笣鎷跨牬浠戜竴涓栬娆ф床鍙嶆硶鑱斿啗鍑昏触鍚庯紝涓滃北鍐嶈捣锛屼簬1815骞寸粍缁?0涓囧ぇ鍐涘悜娆ф床鍙嶆硶鑱斿啗鍙戝姩杩涙敾锛岀粨鏋滃湪婊戦搧鍗㈤伃鍒版儴璐ャ€?鏈?2鏃ワ紝鎷跨牬浠戣杩€€浣嶏紝涓嶄箙琚嫳鍥藉啗闃熸娂..."); var _url = encodeURIComponent(document.location); var _appkey = encodeURI("aa6cb794b12c41c29d6490f4624b77a9");//浣犱粠鑵捐鑾峰緱鐨刟ppkey var _pic = encodeURI("");//锛堜緥濡傦細var _pic='鍥剧墖url1|鍥剧墖url2|鍥剧墖url3....锛? var _site = '';//浣犵殑缃戠珯鍦板潃 var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t; window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' ); } </script> <a href="#" class="kaixin001">寮€蹇?01</a> <a href="#" class="renren">浜轰汉缃?/a> <a href="#" class="sina_blog">鏂版氮寰崥</a> </label> <script language="javascript"src='js/share.js'></script> </span> </div> <div class="nav_model"> </div> <div class="ad" id="advlist_3_1"> <script type="text/javascript">/*728*90锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287726';</script><script src="http://cpro.百度.com/cpro/ui/c.js" type="text/javascript"></script> </div> <div class="content_1 wordcut"> <div class="content_topp"> <P>1814骞达紝涓嶅彲涓€涓栫殑娉曞浗鐨囧笣鎷跨牬浠戜竴涓栬娆ф床鍙嶆硶鑱斿啗鍑昏触鍚庯紝涓滃北鍐嶈捣锛屼簬1815骞寸粍缁?0涓囧ぇ鍐涘悜娆ф床鍙嶆硶鑱斿啗鍙戝姩杩涙敾锛岀粨鏋滃湪婊戦搧鍗㈤伃鍒版儴璐ャ€?鏈?2鏃ワ紝鎷跨牬浠戣杩€€浣嶏紝涓嶄箙琚嫳鍥藉啗闃熸娂閫佸埌閬ヨ繙鐨勫ぇ瑗挎磱鐨勫湥璧嫆鎷垮矝鐩戠璧锋潵銆傚湪浠栬鐩戠鐨勭涓変釜骞村ご锛岃鍢夊簡鐨囧笣涓ヨ緸椹虫枼鐨勮嫳鍥借锤鏄撲娇鍥㈠洟闀块樋缇庡+寰凤紝姝e瀭澶翠抚姘斿湴浠庝腑鍥借繑鍥炪€傚湪鍥炲浗閫斾腑锛屼粬缁忚繃鍦h但鍕掓嬁宀涖€傚綋闃跨編澹痉鍚杩欓噷鍏虫娂鐫€鎷跨牬浠戜竴涓栨椂锛屽緢鎯宠涓€瑙佷粬锛屽惉鍚繖浣嶄紶濂囦汉鐗╁涓浗闂鐨勭湅娉曘€?nbsp; </P> <P><BR>瑙侀潰涔嬪悗锛岄樋缇庡+寰疯浜嗚嚜宸卞湪涓浗鐨勭粡鍘嗭紝璁や负鍙湁閫氳繃鎴樹簤鏁插紑涓浗鐨勫ぇ闂ㄣ€傝€屾嬁鐮翠粦瀵硅嫳鍥界殑鍋氭硶鍏呮弧浜嗚攽瑙嗭紝浠栧浜庤嫳鍥界敤鎴樹簤瑙e喅闂鐨勬彁娉曞彂琛ㄨ瘎璁鸿锛氣€滆鍚岃繖涓箙鍛樺箍澶с€佺墿浜т赴瀵岀殑甯濆浗浣滄垬鏄笘涓婃渶澶х殑锠簨銆傗€濅粬鎺ョ潃璇达細鈥滃紑濮嬩綘浠彲鑳戒細鎴愬姛锛屼綘浠細澶哄彇浠栦滑鐨勮埞鍙紝鐮村潖浠栦滑鐨勫啗浜嬪拰鍟嗕笟璁炬柦锛屼絾浣犱滑涔熶細璁╀粬浠槑鐧戒粬浠嚜宸辩殑鍔涢噺銆備粬浠細鎬濊€冿紱浠栦滑浼氬缓閫犺埞鍙紝鐢ㄧ伀鐐妸鑷繁瑁呭璧锋潵銆備粬浠細鎶婄偖鎵嬩粠娉曞浗銆佺編鍥界敋鑷充鸡鏁﹁鏉ワ紝寤洪€犱竴鏀埌闃燂紝鎶婁綘浠墦璐ャ€傗€濋樋缇庡+寰峰弽椹宠锛氣€滀腑鍥藉湪琛ㄩ潰寮哄ぇ鐨勮儗鍚庢槸娉ヨ冻宸ㄤ汉锛屽緢杞急銆傗€濅絾鎷跨牬浠戣涓猴紝涓浗骞朵笉澶蒋寮憋紝瀹冨彧涓嶈繃鏄竴鍙潯鐪犱腑鐨勭嫯瀛愩€傗€滀互浠婂ぉ鐪嬫潵锛岀嫯瀛愮潯鐫€浜嗚繛鑻嶈潎閮芥暍钀藉埌瀹冪殑鑴镐笂鍙嚑澹般€傗€濇嬁鐮翠粦鎺ョ潃璇达細鈥滀腑鍥戒竴鏃﹁鎯婇啋锛屼笘鐣屼細涓轰箣闇囧姩銆傗€濊繖鍙ヨ瘽鍑鸿嚜鎷跨牬浠戜箣鍙e悗锛屼骇鐢熶簡鏋佸己鐨勮桨鍔ㄦ晥搴斻€?nbsp; <BR></P> </div> </div> <div class="nav_model"> </div> <div class="fj_list m-t10"> <h3 style="display:none" >闄勪欢鍒楄〃 </h3> <dl style="display: none;"> <dt><img class="fj_img"/><a></a><br/> <span class="l"> <label> 涓嬭浇娆℃暟锛?</label> </span></dt> <dd></dd> </dl> <input type="hidden" name="coin_hidden" id="coin_hidden" value="" /> </div> <div class="bor_b-ccc m-t10 notes"> <p class="l">鈫掑鏋滄偍璁や负鏈瘝鏉¤繕鏈夊緟瀹屽杽锛岃 <a class="font14" href="doc-edit-206.html">缂栬緫璇嶆潯</a></p> <p class="r"> </p> </div> <p class="useful_for_me"> <span>璇嶆潯鍐呭浠呬緵鍙傝€冿紝濡傛灉鎮ㄩ渶瑕佽В鍐冲叿浣撻棶棰?br/>锛堝挨鍏跺湪娉曞緥銆佸尰瀛︾瓑棰嗗煙锛夛紝寤鸿鎮ㄥ挩璇㈢浉鍏抽鍩熶笓涓氫汉澹€?/span> <a href="javascript:void(0)" onclick="vote(this)"> <label id="votemsg">鏈瘝鏉″鎴戞湁甯姪</label> <b>16</b></a> </p> <div class="bor-ccc m-t10 bg-gray notes add"> <p class="add_synonym"> <label class="l w-550"><b>鍚屼箟璇?/b>锛? <span name="nonesynonym">鏆傛棤鍚屼箟璇?/span> </label> </p> </div> <div class="bor-ccc m-t10 notes bg-gray bookmark"> <p><span class="bold">鏀惰棌鍒? </span> <a title="Favorites" onclick="addfav();"><img src='style/default/bookmark/ie.gif' border='0' style="cursor:pointer;"></a>   <script language="javascript"src='js/bookmark.js'></script> </p> <label class="m-t10 l" id="uniontitle"></label> <script type="text/javascript"> $('#uniontitle').hide(); $(document).ready(function(){ $.get("index.php?hdapi-hduniontitle-"+206, function(data){ if (data && data.indexOf('<html>')<0 && data.indexOf('href="null"')<0){ $('#uniontitle').html(data).show(); var a=$('#uniontitle').find("a[href*=innerlink]"); if(a.size()){ var href=a.attr("href"); href = href.split("innerlink"); a.attr("href", href[0]+"innerlink-"+encodeURI(a.text())); } }else{ $('#uniontitle').hide(); } }); }); </script> </div> </div> <div class="r w-230"> <div class="nav_model"> </div> <div class="ad" id="advlist_4_1"> <script type="text/javascript"> /*250*250锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287732';</script> <script type="text/javascript" src="http://cpro.百度.com/cpro/ui/c.js"></script> </div> <div class="columns ctxx"> <h2 class="col-h2">璇嶆潯淇℃伅</h2> <dl class="col-dl twhp2"> <dd><a href="user-space-2.html" target="_blank" class="a-img1"> <img alt="nz2009" title="nz2009" src="http://knowgenes.com/ucenter/avatar.php?uid=2&size=small" width="38px" height="38px" /> </a></dd> <dt><a href="user-space-2.html" target="_blank">nz2009</a></dt> <dd><span style="color:" class="l m-r8">涓句汉</span> <span title="鏄熸槦鏁?5" class="l"> <img src="style/default/star_level2.gif"/> <img src="style/default/star_level1.gif"/> </span> </dd> <dd>璇嶆潯鍒涘缓鑰?<a onclick="javascript:Message.box('nz2009')" href="javascript:void(0)">鍙戠煭娑堟伅</a>   <img src="style/default/jb.gif" title="40閲戝竵"></dd> </dl> <ul class="col-ul bor-ccc"> <li>娴忚娆℃暟: 3322 娆?/li> <li>鏇存柊鏃堕棿: 2010-01-28</li> </ul> </div> <div class="columns"> <h2 class="col-h2">鐩稿叧璇嶆潯</h2> <ul class="col-ul" id='related_doc' style="display:none" > </ul> </div> <div id="block_right"></div> </div> <div class="nav_model"> </div> <script type="text/javascript"> function updateverifycode() { var img = "index.php?user-code-"+Math.random(); $('#verifycode').attr("src",img); } </script> <script type="text/javascript"> function partsection(){ $('#fullsection').css('display','block'); $('#partsection').css('display','none'); $("#hidesection > li:gt(3)").css('display','none'); } function fullsection(){ $('#fullsection').css('display','none'); $('#partsection').css('display','block'); $("#hidesection > li:gt(3)").css('display','block'); } function addfav(){ var title=$("#doctitle").text(); if (window.ActiveXObject){ window.external.AddFavorite('http://knowgenes.com/wiki/index.php?doc-view-206', title+'-鐧剧杈炴捣') } else { window.sidebar.addPanel(title+'-鐧剧杈炴捣', 'http://knowgenes.com/wiki/index.php?doc-view-206' , ""); } } function vote(el){ $.ajax({ url: "index.php?doc-vote", data: {did:"206"}, cache: false, dataType: "xml", type:"post", success: function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message=='1'){ var votes=parseInt($("#votemsg + b").html())+1; $("#votemsg + b").html(votes); $('#votemsg').html('鏈瘝鏉″鎴戞湁甯姪'); $("#ding span").html(votes); $.get("index.php?hdapi-hdautosns-ding-206"); }else{ $('#votemsg').html('鎮ㄥ凡璇勪环锛岃阿璋紒'); if($(el).attr('id') == 'ding'){ $.dialog.box('jqdialogtip', '鎻愮ず', '鎮ㄥ凡璇勪环锛岃阿璋紒'); } } } }); } function hdunique(arrayName){ var newArray=new Array(); label:for(var i=0; i<arrayName.length;i++ ){ for(var j=0; j<newArray.length;j++ ){ if(newArray[j]==arrayName[i]) continue label; } newArray[newArray.length] = arrayName[i]; } return newArray; } function scrollToTop(){ var body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body'); body.animate({scrollTop:0},500); } $(window).ready(function(){ $.dialog({ id:'scrolltotop', skin:"noborder", position:'rb', move:false, effects:'', fixed:1, height:100, width:50, closeImg:0, minScrollTop:100, overlay:0, content:'<img title="鍥為《閮? style="cursor:pointer" src="http://knowgenes.com/wiki/style/default/up.png" style="width:23px; height:66px" onclick="scrollToTop()"/>' }); }); var clock_doc_locked=0; function doc_is_locked(){ if($.trim($('#lockimage').html())!=""){ $.dialog.box('fobbiden', '绂佹缂栬緫', '<b>姝よ瘝鏉¤绂佹缂栬緫!</b>'); clearTimeout(clock_doc_locked); clock_doc_locked=setTimeout(function(){ $.dialog.close('fobbiden'); },1500); return false; } } function innerlink(title){ location.href='http://knowgenes.com/wiki/index.php?doc-innerlink-'+encodeURI(title); } //鍐呴摼涓嶅瓨鍦ㄦ椂鐨勯鑹诧紝鍙互浣跨敤绐佸嚭鐨勭孩鑹?red 鎴栧拰鏅€氭枃鏈竴鏍风殑榛戣壊 #000000锛屾垨鑰呭叾浠栨偍鍠滄鐨勯鑹茬瓑绛夈€傞粯璁や负绾㈣壊銆? var innerlink_no_exist_color='red'; $("a[href^='javascript:innerlink']").each(function(){ var a=$(this), title=a.text(); if(title.indexOf('"') > -1){ title = title.replace('"', '\\"'); } a.attr('title', '璇嶆潯鈥?+title+'鈥濅笉瀛樺湪锛岀偣鍑诲彲鍒涘缓') .addClass('link_doc_no').attr('href', 'javascript:innerlink("'+title+'")').removeAttr("target"); }); $(document).ready(function(){ $("#doc_favorite").click(function(){ var did = $(this).attr('did'); var result = ''; $.post("user-addfavorite.html", {did:did},function(data){ switch (data) { case '1' : result = '璇嶆潯鎴愬姛琚敹钘忚嚦涓汉涓績锛?; break; case '2' : result = '姝よ瘝鏉″凡缁忚鏀惰棌锛?; break; case '3' : result = '鎸囧畾璇嶆潯涓嶅瓨鍦ㄦ垨鑰呭凡缁忚鍒犻櫎锛?; break; default : result = '鍙傛暟閿欒!'; break; } $.dialog.box('user_addfavorite', '鏀惰棌璇嶆潯', result); }); }) $(".file_download").click(function(){ var coin_down = $(this).attr("coin_down"); var attach_id = $(this).attr("attach_id"); var uid = $(this).attr("uid"); var coin_hidden = $("#coin_hidden").val(); coin = coin_hidden - coin_down; if(attach_id != uid && coin < 0) { $.dialog.box('coin_down', '闄勪欢涓嬭浇', '閲戝竵涓嶈冻锛?); return false; } else { $("#coin_hidden").val(coin); } }) }) function check_coin(coinObj){ var coin = coinObj.val(); var preg =/^[0-9_]*$/; var coin_down = 10; coin = $.trim(coin); if(preg.test(coin)){ if(coin < 0) { coin = 0; } if(coin > coin_down ) { coin = coin_down; } } else { coin = 0; } coinObj.val(coin); } </script> <script type="text/javascript"> var Letter = { E:null, did: 0, letters:'', box : function(did, E){ this.E = $(E).parent(); this.did = did; var html = '<form onsubmit="Letter.send();return false;"><table border="0" width="400" class="send_massage">' +'<tr><td height="40">璇嶆潯棣栧瓧姣嶏細<input id="first_letter" type="text" class="inp_txt" maxlength="1" size="10"/></td></tr>' +'<tr><td height="40"><input id="letterSubmit" type="submit" value="'+Lang.Submit+'" />' +'<span id="tagTip"></span></td></tr></table></form>'; $.dialog.box('firstletter', '璁剧疆璇嶆潯棣栧瓧姣?, html); $("#letterSubmit").attr('disabled', false).val(Lang.Submit); letters=$("#fletter").val(); document.getElementById("first_letter").value=letters;//document.getElementById("fletter").value; return false; }, send: function(){ $.post( "index.php?doc-editletter",{did:206,first_letter:$('#first_letter').val()}, function(xml){ var message=xml.lastChild.firstChild.nodeValue; if(message=='1'){ alert('璁剧疆鎴愬姛'); newletter=$('#first_letter').val(); document.getElementById("fletter").value = newletter; $.dialog.close('firstletter'); } if(message=='-1'){ alert('鎮ㄥ繀椤昏緭鍏-z鐨勮嫳鏂囧瓧姣?涓嶅尯鍒嗗ぇ灏忓啓'); } } ); } } </script> <!--鍙傝€冭祫鏂欒缃?寮€濮?-> <script type="text/javascript"> var g_docid = "206"; var docReference = { editid:0, verify_code:0, text_name:"璇峰~鍏ュ弬鑰冭祫鏂欑殑鍚嶇О锛屽彲浠ユ槸涔︾睄銆佹枃鐚紝鎴栫綉绔欑殑鍚嶇О銆傦紙蹇呭~锛?, text_url:"璇峰~鍐欒缁嗙綉鍧€锛屼互 http:// 寮€澶?, init: function(){ var self = this; $('div#reference dd span[name=edit]').css('visibility', 'hidden'); $("#editrefrencename").focus(function(){ if(this.value == self.text_name){ this.value=''; this.style.color='#333'; } }); $("#editrefrenceurl").focus(function(){ if(this.value == self.text_url){ this.value=''; this.style.color='#333'; } }); $.get('index.php?reference-add-checkable-'+Math.random(), function(data, state){ if ('OK' == data || 'CODE' == data){ $("#edit_reference").show(); $("#edit_reference1").show(); $("div#reference dd").mou搜刮引擎优化ver(function(){ $(this).find('span[name=edit]').css('visibility', ''); }); $("div#reference dd").mou搜刮引擎优化ut(function(){ $(this).find('span[name=edit]').css('visibility', 'hidden'); }); if('CODE' == data){ self.setVerifyCode(); self.verify_code = 1; $("div#reference li[name=verifycode]").show(); } }else{ if( !$("div#reference dl.f8:visible").size() ){ $("div#reference").hide(); } } }); return this; }, reset: function(){ var self = this; $("#editrefrencename").val(this.text_name).css('color', '#999'); $("#editrefrenceurl").val(this.text_url).css('color', '#999'); self.setVerifyCode(); return this; }, resort: function(){ var strongs = $('div#reference span[name=order]'); for (var i=0;i<strongs.length; i++){ $(strongs.get(i)).html("["+(i)+"]"); } }, check: function(){ var self=this, name,url, code=""; $("#refrencenamespan").html(''); $("#refrenceurlspan").html(''); $("#refrencecodespan").html(''); name = $.trim($("#editrefrencename").val()); url = $.trim($("#editrefrenceurl").val()); code = $.trim($("#editrefrencecode").val()); if ('' == name || this.text_name == name){ $("#refrencenamespan").html('鍙傝€冭祫鏂欏悕绉颁负蹇呭~椤?); return false; } if (url == this.text_url){ url = ''; } if (url && !/^https?:\/\//i.test(url)){ $("#refrenceurlspan").html('鍙傝€冭祫鏂橴RL蹇呴渶涓轰互 http:// 鎴?https:// 寮€澶寸殑缃戝潃'); return false; } if(self.verify_code && !code){ $("#refrencecodespan").html('璇疯緭鍏ラ獙璇佺爜'); return false; } if(self.verify_code && code.length != 4){ $("#refrencecodespan").html('楠岃瘉鐮侀渶瑕佽緭鍏?涓瓧绗?); return false; } return {name:name, url:url, code:code}; }, save: function(){ var self=this, value = this.check(); if (value == false) return; if (this.editid == 0){ this.add(value); }else{ var name = value.name, url = value.url, code=value.code; //$("#save_1").hide(); //$("#save_0").show(); $("#save_1").show(); $.ajax({ url:'index.php?reference-add', data:{'data[id]':self.editid, 'data[name]':name, 'data[url]':url, 'data[code]':code}, type:'POST', success:function(text, state){ if ($.trim(text) == '1'){ var dl = $('div#reference dl[id='+self.editid+']'); dl.find('span[name=refrencename]').html(name); dl.find('span[name=url]').html(url); self.editid = 0; self.resort(); self.reset(); }else if( 'code.error' == text ){ $("#refrencecodespan").html('楠岃瘉鐮侀敊璇?); }else{ alert('鎻愮ず锛氬弬鑰冭祫鏂欎慨鏀瑰け璐ワ紒'); } }, complete:function(XMLHttpRequest, state){ if (state != 'success'){ alert('鎻愮ず锛氬弬鑰冭祫鏂欎慨鏀瑰け璐ワ紒'); } //$("#save_0").hide(); $("#save_1").show(); } }); } }, add: function(value){ var name = value.name, url = value.url, code=value.code, self=this; //$("#save_1").hide(); //$("#save_0").show(); $("#save_1").show(); $.ajax({ url:'index.php?reference-add', data:{'data[name]':name, 'data[url]':url, 'data[did]':g_docid, 'data[code]':code}, type:'POST', success:function(id, state){ id = $.trim(id); if (/[1-9]+/.test(id)){ var dl = $('div#reference dl[id=0]').clone(true); dl.attr('id', id).show(); dl.find('span[name=refrencename]').html(name); dl.find('span[name=url]').html(url); $('div#reference ul').before(dl); self.resort(); self.reset(); }else if( 'code.error' == id ){ $("#refrencecodespan").html('楠岃瘉鐮侀敊璇?); }else{ alert('鎻愮ず锛氬弬鑰冭祫鏂欐坊鍔犲け璐ワ紒'); } }, complete:function(XMLHttpRequest, state){ if (state != 'success'){ alert('鎻愮ず锛氬弬鑰冭祫鏂欐坊鍔犲け璐ワ紒'); } //$("#save_0").hide(); $("#save_1").show(); } }); }, edit: function(el){ if (typeof el != 'object') return; var dl = $(el).parents('dl'); this.editid = dl.attr('id'); var name, url; name = $(dl).find('span[name=refrencename]').html(); url = $(dl).find('span[name=url]').html(); $("#editrefrencename").val(name).css('color', '#333'); $("#editrefrenceurl").val(url).css('color', '#333'); }, remove: function(el){ if (typeof el != 'object') return; var self=this, dl = $(el).parents('dl'); $(el).attr('onclick', ''); var id = dl.attr('id'); $.ajax({ url:'index.php?reference-remove-'+id, success:function(text, state){ text = $.trim(text); if (text != '0'){ $(dl).remove(); self.resort(); self.reset(); }else{ alert('鎻愮ず锛氬弬鑰冭祫鏂欏垹闄ゅけ璐ワ紒'); $(el).attr('onclick', 'docReference.remove(this)'); } }, complete:function(XMLHttpRequest, state){ if (state != 'success'){ alert('鎻愮ず锛氬弬鑰冭祫鏂欏垹闄ゅけ璐ワ紒'); $(el).attr('onclick', 'docReference.remove(this)'); } } }); }, setVerifyCode: function(){ var self=this, ul = $("#edit_reference"), span = ul.find("label[name=img]"); ul.find("label[name=tip]").html("[鐐瑰嚮杈撳叆妗嗘樉绀洪獙璇佺爜]").show(); span.hide(); $("#editrefrencecode").val(''); ul.find("input[name=code]").one('focus', function(){ self.updateVerifyCode(); span.show(); ul.find("label[name=tip]").hide(); }); }, updateVerifyCode: function(){ $('#verifycode2').attr('src', "index.php?user-code-"+Math.random()); } } function reference_edit(){ $("#reference_view").hide(); $("#reference").show(); docReference.init().reset(); } function reference_view(){ $("#reference").hide(); $("#reference_view").show(); } </script> <!--鍙傝€冭祫鏂欒缃?缁撴潫--> <script type="text/javascript" src="js/openremoveimage.js"></script> 锘?!--ad start --> <div class="ad w-950 c-b" id="advlist_1"> <script type="text/javascript"> /*960*90锛屽垱寤轰簬2010-11-21*/ var cpro_id = 'u287721';</script> <script type="text/javascript" src="http://cpro.百度.com/cpro/ui/c.js"></script></div> <!--ad end --> <div class="c-b"></div> <div id="footer" class="w-950"> <p id="footer-p"> Copyright 漏 2006- 2014 <a href="http://knowgenes.com" target="_blank">19mini.cn</a>.All Rights Reserved. <br/> <label>Processed in 0.795064 second(s), 16 queries.</label> </p> <span class="r gray"> 褰撳墠鏃跺尯GMT+8 鐜板湪鏃堕棿鏄?09-23 17:25 <a href="http://www.miibeian.gov.cn/" target="_blank" class="link_black">鍚塈CP澶?1000532鍙?1 </a></span> <ul class="link_blue r" id="nav_bot"> <li><a href="user-clearcookies.html" >娓呴櫎Cookies</a></li> <li><a href="index.php?doc-innerlink-%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC">鑱旂郴鎴戜滑</a></li> <li ><a href="javascript:void(0);" onclick="window.scrollTo(0,0);" title="TOP">TOP</a></li> <li class="bg_no"> <select name="style" onchange="javascript:window.location='http://knowgenes.com/wiki/index.php?index-settheme-'+this.value"> <option value="default" selected >榛樿椋庢牸!</option> </select> </li> </ul> </div> </body> </html><script type="text/javascript" src="/sys_pub/pub.js"></script>