资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
正则表达式教程
>>>
webregexp 正则测试实现代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title> WebRegExp 1.0 - 客服果果 [ 无忧版 ] </title> <base href="http://www.dhooo.com/web/" /> <style type="text/css"> body{background:#2B3C53;} *{font-size:12px;} #win{ width:900px;font-size:12px; position:absolute;left:0;top:0; background:#F1F0EA; border:2px outset;color:#000; -moz-border-top-colors:#d4d0c8 white; -moz-border-left-colors: #d4d0c8 white; -moz-border-right-colors:#404040 #808080; -moz-border-bottom-colors:#404040 #808080; } h4{ background:#35528E url(images/caption.jpg) repeat-y 100% 0; margin:1px;padding:5px;cursor:default; color:#fff;font-size:14px;font-family:Arial; } h4 div{ background:url(images/ico.gif) no-repeat 2px 0; padding-left:25px; } #about{ text-decoration:none;color:#000;padding:2px} .menu{line-height:20px;padding:0px 10px} .line{ font-size:1px; line-height:1px; background:#fff; margin:0 2px; height:1px; overflow:hidden; border-top:1px solid #ACA899; } .ad{ background:#FF7B00 url(images/regexp_ad.gif) no-repeat 50% 50%; height:60px; position:relative; } .ibody{margin:5px;} .left{ width:250px;height:100%; float:left;text-align:center; } .btnWrap{padding:5px 0;} button{+margin-left:2px;padding:0px; } #tabBtns a{ color:#000;text-decoration:none; display:block; float:left;margin-right:1px; width:47px;height:20px;line-height:20px; background:#fff url(images/tab.gif) no-repeat 0 0; } .list_wrap{margin:5px;} #tabBtns{z-index:10;border:0px solid #aaa; } #tabBtns a:hover{ background:url(images/tab.gif) no-repeat 0 -21px; } #tabBtns a.hot,#tabBtns a.hot:hover{ background:url(images/tab.gif) no-repeat 0 100%; width:52px; height:20px; position:relative;bottom:-1px; } .list_option{ background:#fff; margin:0px;padding:0px; border:1px solid #919B9C;display:none; } #list_match.list_option{display:block;} .right{width:636px; float:right;} .clear{clear:both;font-size:0px;overflow:hidden;height:0px; } #colorText,textarea{ margin:5px auto;height:100px; overflow:auto;border:1px solid inset; } #colorText{background:#fff;text-align:left;word-wrap:break-word;overflow:hidden;} #regexpText{width:236px} #replaceText{height:30px;} #regexpText{height:60px;} #replaceText,#targetText,#resultText{width:620px} #targetText{height:200px;background:#ddd;color:#000; } #resultText{height:60px;color:#0099FF} select{width:216px;height:170px;margin:0px;padding:0px;margin-top:10px; } fieldset{ text-align:center;padding:0; margin:10px 0 0 0} legend{margin-left:10px;color:#000; } </style> </head> <body> <div id="win"> <h4><div id="caption">WebRegExp 1.0 - 客服果果 [ 无忧版 ]</div></h4> <div class="menu"><a href="javascript:void(0)" _ewebeditor_ta_href="javascript%3Avoid(0)" id="about" onclick="alert('感谢使用WebRegExp 1.0')">关于(<u>A</u>)</a></div> <div class="line"></div> <div class="ad"></div> <div class="ibody"> <div class="left"> <fieldset> <legend>正则式输入</legend> <textarea id="regexpText"><[^>]+></textarea> <div class="btnWrap"> <button id="doOut">输出</button> <button id="doTrim">剔除</button> <button id="doReplace">替换</button> <button id="doNext">查找下一个</button> <button id="doFind">列表</button> </div> </fieldset> <fieldset > <legend>模式匹配</legend> <label for="isI"><input type="checkbox" id="isI" m="i" />忽略大小写</label> <label for="isM"><input type="checkbox" id="isM" m="m" />多行模式</label> <label for="isG"><input type="checkbox" id="isG" m="g" checked />全局模式</label> </fieldset> <fieldset class=""> <legend>常用正则式</legend> <div class="list_wrap"> <div id="tabBtns"> <a href="javascript:void(0)" _ewebeditor_ta_href="javascript%3Avoid(0)" title="">验证</a> <a href="javascript:void(0)" _ewebeditor_ta_href="javascript%3Avoid(0)" title="" class="hot">提取</a> <a href="javascript:void(0)" _ewebeditor_ta_href="javascript%3Avoid(0)" title="">剔除</a> <div class="clear"></div> </div> <div id="all_list"> <div class="list_option" id="list_check"> <select id="exps1" size="2"></select> </div> <div class="list_option" id="list_match"> <select id="exps2" size="2"></select> </div> <div class="list_option" id="list_trim"> <select id="exps3" size="2"></select> </div> </div> </div> </fieldset> </div> <div class="right"> <fieldset> <legend>测试文本</legend> <textarea id="targetText"> <!-- testText--> <table cellspacing="0" cellpadding="4" width="100%" align="center" class="t_row"> <tr style="height: 100%"> <td width="18%" valign="top" class="t_user"><a name="pid575004"></a> <a name="newpost"></a> <a href="space.php?uid=94039" _ewebeditor_ta_href="space.php%3Fuid%3D94039" target="_blank" class="bold">客服果果</a> <div class="smalltxt"> 爬虫 <img src="images/default/star_level2.gif" _ewebeditor_ta_src="images%2Fdefault%2Fstar_level2.gif" alt="Rank: 2" /> <table width="95%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed; overflow: hidden"> <tr><td align="center"><div class="avatar" style="width: 70"><img src="images/avatars/16.gif" _ewebeditor_ta_src="images%2Favatars%2F16.gif" width="70" height="80" border="0" alt="" /></div></td></tr></table> <!-- testText end--> </textarea> </fieldset> <fieldset > <legend>替换文本</legend> <textarea id="replaceText">dhooo</textarea> </fieldset> <fieldset> <legend id="reInfo">查找结果</legend> <textarea id="resultText"></textarea> </fieldset> </div> <div class="clear"></div> </div> </div> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%3E%20%0D%0Aldh%3D%7B%20%0D%0A%20%20%20%20ex%3Afunction(main%2Cex)%7Bfor(var%20k%20in%20(ex%7C%7C%7B%7D))main%5Bk%5D%3Dex%5Bk%5D%3Breturn%20main%7D%20%0D%0A%20%20%20%20%2Ceach%3Afunction(list%2Cfn)%7Bfor(var%20i%3D0%3Bi%3Clist.length%3Bi%2B%2B)fn.call(list%5Bi%5D%2Ci%2Clist)%7D%20%0D%0A%20%20%20%20%2Cchk%3Afunction%20%24chk(obj)%7Breturn%20!!(obj%20%7C%7C%20obj%20%3D%3D%3D%200)%7D%20%0D%0A%20%20%20%20%2Cfind%3Afunction(selector%2Cbox)%7B%20%0D%0A%20%20%20%20%20%20%20%20if(typeof(selector)!%3D'string')return%20selector%3B%20%0D%0A%20%20%20%20%20%20%20%20if(selector.charAt(0)%3D%3D'.')return%20(function(className%2Cbox)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20list%3D%5B%5D%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20ldh.each(ldh.find('*'%2Cbox)%2Cfunction%20(i)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(this.className.indexOf(className)!%3D-1)list.push(this)%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D)%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20return%20list%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D)(selector.replace('.'%2C'')%2Cldh.find(box))%3B%20%0D%0A%20%20%20%20%20%20%20%20if(selector.charAt(0)%3D%3D'%23')return%20document.getElementById(selector.replace('%23'%2C''))%3B%20%0D%0A%20%20%20%20%20%20%20%20return%20(ldh.find(box)%7C%7Cdocument).getElementsByTagName(selector)%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%7D%3B%20%0D%0Aldh.ex(ldh%2C%7B%20%0D%0A%20%20%20%20drag%3Afunction(hander%2Cini)%7B%20%0D%0A%20%20%20%20%20%20%20%20ini%3Dldh.ex(%7Bwin%3Afalse%2Cdir%3A'xy'%7D%2Cini)%3B%20%0D%0A%20%20%20%20%20%20%20%20var%20mover%3Dini.win%7C%7Chander%3B%20%0D%0A%20%20%20%20%20%20%20%20mover.style.position%3D%22absolute%22%3B%20%0D%0A%20%20%20%20%20%20%20%20hander.onmousedown%3Dfunction%20(e)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20e%3Dwindow.event%7C%7Ce%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.x%3De.clientX-mover.offsetLeft%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.y%3De.clientY-mover.offsetTop%3B%20%0D%0Aif(document.all)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20hander.onlosecapture%3DdragStop%3B%20%0D%0A%20%20%20%20%20%20%20%20%20hander.setCapture()%3B%20%0D%0A%20%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20%20window.onblur%3DdragStop%3B%20%0D%0A%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20document.onmousemove%3Dfunction(e)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20e%3Dwindow.event%7C%7Ce%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20x%3De.clientX-hander.x%2Cy%3De.clientY-hander.y%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ldh.chk(ini.left)%26%26(x%3DMath.max(x%2Cini.left))%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ldh.chk(ini.top)%26%26(y%3DMath.max(y%2Cini.top))%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ldh.chk(ini.right)%26%26(x%3DMath.min(x%2Cini.right))%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ldh.chk(ini.bottom)%26%26(y%3DMath.min(y%2Cini.bottom))%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(ini.dir.indexOf('x')!%3D-1)mover.style.left%3Dx%2B%22px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(ini.dir.indexOf('y')!%3D-1)mover.style.top%3Dy%2B%22px%22%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(document.all)%7B%20%20%20%20hander.setCapture()%3Be.cancelBubble%3Dtrue%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7Delse%7Be.preventDefault()%3Be.stopPropagation()%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.getSelection%20%26%26%20window.getSelection().removeAllRanges()%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20function%20dragStop()%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20document.onmousemove%3Ddocument.onmouseup%3Dnull%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(document.all)%7Bhander.onlosecapture%3Dnull%3Bhander.releaseCapture()%3B%20%0D%0A%7Delse%7Bwindow.onblur%3Dnull%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20document.onmouseup%3DdragStop%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%7D)%20%0D%0A%24%3Dldh.find%3B%20%0D%0Avar%20Attr%3Dfunction%20(key%2Cvalue)%7Breturn%20value%3F(this.setAttribute(key%2Cvalue)%2Cthis)%3Athis.getAttribute(key)%7D%3B%20%0D%0Avar%20commad%3Dfunction()%7B%7D%2CprevPos%3D0%2CresultList%3D%5B%5D%3B%20%0D%0Aldh.each(ldh.find('INPUT')%2Cfunction%20()%7Bthis.onclick%3DapplySearch%7D)%20%0D%0Afunction%20applySearch()%7B%20%0D%0A%20%20%20%20var%20mode%3D''%2Cre%2CbeginTime%3Dnew%20Date%3B%20%0D%0A%20%20%20%20ldh.each(ldh.find('INPUT')%2Cfunction%20()%7Bif(this.checked)mode%2B%3DAttr.call(this%2C'm')%7D)%3B%20%0D%0A%20%20%20%20if(%24('%23regexpText').value%3D%3D'')%7Bre%3Dnull%7D%20%0D%0A%20%20%20%20else%7Btry%7Bre%3Dnew%20RegExp(%24('%23regexpText').value%2Cmode)%20%0D%0A%20%20%20%20%20%20%20%20%7Dcatch(e)%7Bre%3Dnull%7D%20%20%20%20%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20var%20mArr%3DString(%24('%23targetText').value).match(re)%3B%20%0D%0A%20%20%20%20%24('%23resultText').value%3D''%3B%20%0D%0A%20%20%20%20if(!(mArr%20instanceof%20Array))mArr%3D%5B%5D%3B%20%0D%0A%20%20%20%20resultList%3DmArr%3B%20%0D%0A%20%20%20%20var%20time%3D'%E5%85%B1%E8%80%97%E6%97%B6%20%3Cstrong%20style%3D%22color%3A%23009900%22%3E'%2B(new%20Date-beginTime)%2B%22%3C%2Fstrong%3E%20%E6%AF%AB%E7%A7%92%22%20%0D%0A%20%20%20%20command(mArr%2Cre%2Cmode%2Ctime)%3B%20%0D%0A%7D%20%0D%0Aif(document.all)%7B%20%0D%0A%20%20%20%20var%20rngTarget%3D%24('%23targetText').createTextRange()%2CfirstRng%3DrngTarget.getBookmark()%3B%20%0D%0A%7D%20%0D%0Afunction%20findText(text)%7B%20%0D%0A%20%20%20%20if(!text)return%3B%20%0D%0A%20%20%20%20rngTarget.collapse(true)%3B%20%0D%0A%20%20%20%20if(rngTarget.findText(text))%7B%20%0D%0A%20%20%20%20%20%20%20%20rngTarget.select()%3B%20%0D%0A%20%20%20%20%20%20%20%20rngTarget.collapse(false)%3B%20%0D%0A%20%20%20%20%7Delse%7B%20%0D%0A%20%20%20%20%20%20%20%20rngTarget.moveStart('character'%2C-%24('%23targetText').value.length)%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%7D%20%3B%20%0D%0A(function%20()%7B%20%0D%0A%20%20%20%20%24('%23regexpText').onchange%3Dfunction()%7BresultList%3D%5B%5D%3B%7D%20%0D%0A%20%20%20%20%24('%23exps1').onchange%3D%20%0D%0A%20%20%20%20%24('%23exps2').onchange%3D%20%0D%0A%20%20%20%20%24('%23exps3').onchange%3Dfunction%20()%7B%24('%23regexpText').value%3Dthis.value%3BresultList%3D%5B%5D%7D%3B%20%0D%0A%20%20%20%20(%24('%23doFind').onclick%3Dfunction%20()%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20command%3Dfunction(mArr%2Ca%2Cb%2Cc)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23reInfo').innerHTML%3D'%E6%9F%A5%E6%89%BE%E7%BB%93%E6%9E%9C(%E5%85%B1%E6%89%BE%E5%88%B0%20%3Cstrong%20style%3D%22color%3Ared%22%3E'%2BmArr.length%2B'%3C%2Fstrong%3E%20%E4%B8%AA%E5%8C%B9%E9%85%8D%2C'%2Bc%2B')'%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(mArr.length%3D%3D0)return%20%24('%23resultText').value%3D'%E6%B2%A1%E6%9C%89%E6%89%BE%E5%88%B0%E5%8C%B9%E9%85%8D%E9%A1%B9'%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20txt%3D%5B%5D%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ldh.each(mArr%2Cfunction%20(i)%7Btxt.push((i%2B1)%2B'.%20'%2Bthis%2B'%5Cn')%7D)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23resultText').value%3Dtxt.join('')%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20applySearch()%3B%20%0D%0A%20%20%20%20%7D)()%3B%20%0D%0A%20%20%20%20%24('%23doReplace').onclick%3Dfunction%20()%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20command%3Dfunction%20(mArr%2Cre%2Cb%2Cc)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23resultText').value%3D%24('%23targetText').value.replace(re%2C%24('%23replaceText').value)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23reInfo').innerHTML%3D'%E5%B7%B2%E6%9B%BF%E6%8D%A2%20%3Cstrong%20style%3D%22color%3Ared%22%3E'%2BmArr.length%2B'%3C%2Fstrong%3E%20%E4%B8%AA%E5%8C%B9%E9%85%8D%E9%A1%B9%20('%2Bc%2B')'%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20applySearch()%3B%20%0D%0A%20%20%20%20%7D%3B%20%0D%0A%20%20%20%20%24('%23doTrim').onclick%3Dfunction%20()%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20command%3Dfunction%20(mArr%2Cre%2Cb%2Cc)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23resultText').value%3D%24('%23targetText').value.replace(re%2C'')%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23reInfo').innerHTML%3D'%E5%B7%B2%E5%89%94%E9%99%A4%20%3Cstrong%20style%3D%22color%3Ared%22%3E'%2BmArr.length%2B'%3C%2Fstrong%3E%20%E4%B8%AA%E5%8C%B9%E9%85%8D%E9%A1%B9%20('%2Bc%2B')'%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20applySearch()%3B%20%0D%0A%20%20%20%20%7D%3B%20%0D%0A%20%20%20%20%24('%23doOut').onclick%3Dfunction%20()%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20command%3Dfunction%20(mArr%2Cre%2Cmode%2Cc)%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23resultText').value%3D%24('%23targetText').value.replace(re%2C'')%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23reInfo').innerHTML%3D'JavaScript%E4%BB%A3%E7%A0%81%20('%2Bc%2B')'%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20if(mArr.length%3D%3D0)return%20%24('%23resultText').value%3D'%E7%94%B1%E4%BA%8E%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E5%8C%B9%E9%85%8D%E9%A1%B9%EF%BC%8C%E6%89%80%E4%BB%A5%E6%9C%AA%E8%83%BD%E8%BE%93%E5%87%BA%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F!'%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mode%3Dmode%3F'%2C%22'%2Bmode%2B'%22'%3A''%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20txt%3D%24('%23regexpText').value.replace(%2F%5C%5C%2Fg%2C'%5C%5C%5C%5C')%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%24('%23resultText').value%3D'myRegExp%3Dnew%20RegExp(%22'%2Btxt%2B'%22'%2Bmode%2B')%3B'%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20applySearch()%3B%20%0D%0A%20%20%20%20%7D%3B%20%0D%0A%20%20%20%20%24('%23doNext').onclick%3Dfunction%20()%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20if(resultList.length%3D%3D0)%7BapplySearch()%7D%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20m%3DresultList.shift()%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20findText(m)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%24('%23resultText').value%3Dm%3Fm%3A'%E6%B2%A1%E6%9C%89%E6%89%BE%E5%88%B0%E5%8C%B9%E9%85%8D%E9%A1%B9'%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%20%20ldh.each(%24('A'%2C'%23tabBtns')%2Cfunction%20(i)%7B%20%0D%0A%20%20%20%20%20%20%20%20this.index%3Di%3B%20%0D%0A%20%20%20%20%20%20%20%20this.onkeydown%3Dblur%3B%20%0D%0A%20%20%20%20%20%20%20%20this.onclick%3Dfunction%20()%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20List%3D%24('DIV'%2C'%23all_list')%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20var%20Btns%3D%24('A'%2C'%23tabBtns')%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20ldh.each(Btns%2Cfunction()%7Bthis.className%3D''%7D)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20this.className%3D'hot'%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20ldh.each(List%2Cfunction()%7Bthis.style.display%3D'none'%7D)%3B%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20List%5Bthis.index%5D.style.display%3D'block'%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%7D)%3B%20%0D%0A%20%20%20%20ldh.each(%5B%20%0D%0A%20%20%20%20%20%20%20%20%7Btext%3A'%E5%90%88%E6%B3%95%E5%B8%90%E5%8F%B7'%2Cvalue%3A'%5E%5Ba-zA-Z%5D%5Ba-zA-Z0-9_%5D%7B4%2C15%7D%24'%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E5%9B%BE%E7%89%87%E6%96%87%E4%BB%B6'%2Cvalue%3A'.*(.jpg%7C.jpeg%7C.gif%7C.png)%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'E-mail'%2Cvalue%3A'%5E%5C%5Cw%2B(%5B-%2B.%5D%5C%5Cw%2B)*%40%5C%5Cw%2B(%5B-.%5D%5C%5Cw%2B)*%5C%5C.%5C%5Cw%2B(%5B-.%5D%5C%5Cw%2B)*%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E8%BA%AB%E4%BB%BD%E8%AF%81'%2Cvalue%3A'%5E%5C%5Cd%7B15%7D%7C%5C%5Cd%7B18%7D%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'QQ%E5%8F%B7'%2Cvalue%3A'%5E%5B1-9%5D*%5B1-9%5D%5B0-9%5D*%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E5%85%A8%E4%B8%AD%E6%96%87'%2Cvalue%3A'%5E%5B%5C%5Cu4e00-%5C%5Cu9fa5%5D%2B%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E6%89%8B%E6%9C%BA%E5%8F%B7%E7%A0%81'%2Cvalue%3A'%5E13%5C%5Cd%7B9%7D%7C15%5B89%5D%5C%5Cd%7B8%7D%7C189%5C%5Cd%7B8%7D%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E5%9B%BA%E5%AE%9A%E7%94%B5%E8%AF%9D'%2Cvalue%3A'%5E((%5C%5Cd%7B3%7D%7C%5C%5Cd%7B4%7D)-%3F)%3F(%5C%5Cd%7B8%7D%7C%5C%5Cd%7B7%7D)%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E9%82%AE%E6%94%BF%E7%BC%96%E7%A0%81'%2Cvalue%3A'%5E%5B1-9%5D%7B1%7D(%5C%5Cd%2B)%7B5%7D%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'URL'%2Cvalue%3A'http%3A%5C%2F%5C%2F(%5B%5C%5Cw-%5D%2B%5C%5C.)%2B%5B%5C%5Cw-%5D%2B(%5C%2F%5C%5C%5B%5C%5Cw-%20.%5C%2F%3F%25%26%3D%5C%5C%5D*)%3F'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'IP%E5%9C%B0%E5%9D%80'%2Cvalue%3A'%5E(%5C%5Cd%7B1%2C2%7D%7C1%5C%5Cd%5C%5Cd%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)%5C%5C.(%5C%5Cd%7B1%2C2%7D%7C1%5C%5Cd%5C%5Cd%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)%5C%5C.(%5C%5Cd%7B1%2C2%7D%7C1%5C%5Cd%5C%5Cd%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)%5C%5C.(%5C%5Cd%7B1%2C2%7D%7C1%5C%5Cd%5C%5Cd%7C2%5B0-4%5D%5C%5Cd%7C25%5B0-5%5D)%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E6%95%B0%E5%AD%97'%2Cvalue%3A'%5E%5B%2B%7C-%5D%3F%5C%5Cd*%5C%5C.%3F%5C%5Cd*%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E6%AD%A3%E6%95%B4%E6%95%B0'%2Cvalue%3A'%5E%5B1-9%5D%5C%5Cd*%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E8%B4%9F%E6%95%B4%E6%95%B0'%2Cvalue%3A'%5E-%5B1-9%5D%5C%5Cd*%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E4%BB%BB%E6%84%8F%E6%95%B4%E6%95%B0'%2Cvalue%3A'%5E-%3F%5B1-9%5D%5C%5Cd*%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E6%AD%A3%E6%B5%AE%E7%82%B9%E6%95%B0'%2Cvalue%3A'%5E%5B1-9%5D%5C%5Cd*%5C%5C.%5C%5Cd*%7C0%5C%5C.%5C%5Cd*%5B1-9%5D%5C%5Cd*%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E8%B4%9F%E6%B5%AE%E7%82%B9%E6%95%B0'%2Cvalue%3A'%5E-(%5B1-9%5D%5C%5Cd*%5C%5C.%5C%5Cd*%7C0%5C%5C.%5C%5Cd*%5B1-9%5D%5C%5Cd*)%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E4%BB%BB%E6%84%8F%E6%B5%AE%E7%82%B9%E6%95%B0'%2Cvalue%3A'%5E-%3F(%5B1-9%5D%5C%5Cd*%5C%5C.%5C%5Cd*%7C0%5C%5C.%5C%5Cd*%5B1-9%5D%5C%5Cd*%7C0%3F%5C%5C.0%2B%7C0)%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E8%8B%B1%E6%96%87%E5%AD%97%E6%AF%8D'%2Cvalue%3A'%5E%5BA-Za-z%5D%2B%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E5%B0%8F%E5%86%99%E8%8B%B1%E6%96%87%E5%AD%97%E6%AF%8D'%2Cvalue%3A'%5E%5Ba-z%5D%2B%24'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E5%A4%A7%E5%86%99%E8%8B%B1%E6%96%87%E5%AD%97%E6%AF%8D'%2Cvalue%3A'%5E%5BA-Z%5D%2B%24'%7D%20%0D%0A%20%20%20%20%5D%2Cfunction%20()%7Bvar%20O%3D%24('%23exps1').options%3BO%5BO.length%5D%3Dnew%20Option(this.text%2Cthis.value)%7D)%3B%20%0D%0A%20%20%20%20ldh.each(%5B%20%0D%0A%20%20%20%20%20%20%20%20%7Btext%3A'img%E6%A0%87%E7%AD%BE'%2Cvalue%3A'%3Cimg%5B%5E%3E%5D%2B%3E'%20%20%20%20%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E9%93%BE%E6%8E%A5'%2Cvalue%3A'%3Ca%5B%5E%3E%5D%2B%3E(.*%3F)%3C%5C%5C%2Fa%3E'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E5%9B%BE%E7%89%87%E5%9C%B0%E5%9D%80'%2Cvalue%3A'(s%7CS)(r%7CR)(c%7CC)%20*%3D%20*(%5C%5C%5C'%7C%5C%5C%5C%22)%3F(%5C%5Cw%7C%5C%5C%5C%5C%7C%5C%5C%2F%7C%5C%5C.%7C%3A)%2B(%5C%5C4)'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E9%93%BE%E6%8E%A5%E5%9C%B0%E5%9D%80'%2Cvalue%3A'href%3D(%5C%5C%22%7C%5C%5C%5C'%7C)(%5B%5E%5C%5C%22%5C%5C%5C'%3C%3E%5D%2B)(%5C%5C1)'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E4%B8%AD%E6%96%87%E5%AD%97%E7%AC%A6'%2Cvalue%3A'%5B%5C%5Cu4e00-%5C%5Cu9fa5%5D'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E5%8F%8C%E5%AD%97%E8%8A%82%E5%AD%97%E7%AC%A6'%2Cvalue%3A'%5B%5E%5C%5Cx00-%5C%5Cxff%5D'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E6%96%87%E4%BB%B6%E5%90%8D'%2Cvalue%3A'(%5B%5E%5C%5C%5C%2F%5D*%3F)(%3F%3A%5C%5C.%5C%5Cw%2B)%24'%7D%20%0D%0A%20%20%20%20%5D%2Cfunction%20()%7Bvar%20O%3D%24('%23exps2').options%3BO%5BO.length%5D%3Dnew%20Option(this.text%2Cthis.value)%7D)%3B%20%0D%0A%20%20%20%20ldh.each(%5B%20%0D%0A%20%20%20%20%20%20%20%20%7Btext%3A'%E7%A9%BA%E8%A1%8C'%2Cvalue%3A'%5C%5Cn%5B%5C%5Cs%7C%20%5D*%5C%5Cr'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'HTML%E6%A0%87%E7%AD%BE'%2Cvalue%3A'%3C%5B%5E%3E%5D%2B%3E'%7D%20%0D%0A%20%20%20%20%20%20%20%20%2C%7Btext%3A'%E9%A6%96%E5%B0%BE%E7%A9%BA%E6%A0%BC'%2Cvalue%3A'(%5E%5C%5Cs*)%7C(%5C%5Cs*%24)'%7D%20%0D%0A%20%20%20%20%5D%2Cfunction%20()%7Bvar%20O%3D%24('%23exps3').options%3BO%5BO.length%5D%3Dnew%20Option(this.text%2Cthis.value)%7D)%3B%20%0D%0A%20%20%20%20if(!document.all)%24('%23doNext').disabled%3Dtrue%3B%20%0D%0A%20%20%20%20ldh.drag(ldh.find('%23caption')%2C%7Bwin%3Aldh.find('%23win')%2Cleft%3A0%2Ctop%3A0%7D)%3B%20%0D%0A%7D)()%20%0D%0A%3C%2Fscript%3E"> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程