找回密码
 加入
搜索
查看: 3882|回复: 7

[网络通信] 求指点正则写法,自己在摸索了,但是不对!(已经解决)

[复制链接]
发表于 2011-5-28 23:15:11 | 显示全部楼层 |阅读模式
本帖最后由 qq123123 于 2011-6-5 14:45 编辑

我要得到数据:anitasyk
我看了帮助,自己摸索了一下:  \w*\b    第40个可以得到,但是对于POST 整个网页就不正常了!


下面是全部的代码!
<!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" id="html">
<head>
<BASE HREF="http://bbs.chins.cn/">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>  文章 </title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel='archives' title='文章' href='http://bbs.chins.cn/simple/' />

<base id="headbase" href="http://bbs.chins.cn/" />

<link rel="stylesheet" type="text/css" href="http://a.zimgs.cn/b/n/bbs/images/wind-reset.css" />
<!--css--><style type="text/css">
#html{background:#fcfcf3;}
body{font-size:9pt; background:#fcfcf3;font-family:Verdana; color:#333;}
h3,h2{display:inline;}
h2 a{color:#000;}/*h2 版块列表页版块名称标题*/
h3 a{color:#3366CC;}/*h3 文章列表页文章标题*/
.v-in input{vertical-align:baseline;} /*列表下滑线对齐*/
h4{margin:20px 0 10px;font-size:1.1em}
/*a link 基本连接颜色*/
a{text-decoration:none;color:#000086;}
a:hover{text-decoration:underline;}
/*内补丁*/
.pdD{padding:.3em .5em}
.p10{padding:10px;}
/*main color 数值自定义*/
.f_one,.t_one,.r_one{background:#ffffff;}
.f_two,.t_two,.r_two{background:#f3f9fb;}
/*按钮*/
.btn{border-color:#3366cc;margin-right:1em;color:#fff;background:#3366cc;}
.btn,.bt{border-width:1px;cursor:pointer;padding:.1em 1em;*padding:0 1em;font-size:9pt; line-height:130%; overflow:visible;}
.bt{cursor:pointer;background:#f7f7f7 url(http://a.zimgs.cn/b/n/bbs/images/wind/btn.png) 0 -52px repeat-x;vertical-align:middle;border-color: #e4e4e4 #cccccc #cccccc #e4e4e4;}
/*伪类按钮*/
.bta{cursor:pointer;color:#000086;padding:2px 8px;background:#f3f9fb;margin:2px;white-space:nowrap;border:1px solid #d5e6ed;}
.abtn2 a{border:1px solid #fbfdff;padding:2px 4px 1px;color:#555;}
.abtn2 a:hover{border:1px solid #2195d2;color:#2195d2;text-decoration:none;background:#fff;}
/*form*/
textarea,input,select{font:12px Arial;padding:1px 3px 0 3px;vertical-align:middle;margin-bottom:1px;}
select{border:solid 1px #d5e6ed;}
.input{border: 1px solid; border-color: #c0c0c0 #ededed #ededed #c0c0c0;padding:2px 0px 2px 1px;font-size:1.0em;vertical-align:middle;color:#000;}
textarea{border: 1px solid; border-color: #c0c0c0 #ededed #ededed #c0c0c0;}
/*全局*/
#header{min-width:980px;background:url(http://a.zimgs.cn/b/n/bbs/images/wind/bg.png) 0 -2px repeat-x}
 #head{width:98%;max-width:1200px;margin:0 auto;}
 #nav{width:98%;max-width:1200px;margin:auto;height:32px;}
#main{width:98%;max-width:1200px;margin:0 auto;} /*内容*/
#footer{padding:0 0 30px;width:98%;margin:0 auto;max-width:1200px;}
 .bottom{margin:0 auto 10px;border:1px solid #d5e6ed;background:#f3f9fb;}
 .bottom ul{ padding:5px; margin:0; list-style:none;}
 .bottom ul li{ padding:0 10px 0 0;display:inline;}
 .bottom ul li a{white-space:nowrap;}
/*位置*/
#breadCrumb{padding:10px;color:#999;background:url(http://a.zimgs.cn/b/n/bbs/images/wind/bg.png) 0 -10px repeat-x;border-top:1px solid #9fb7e7;}
/*公告*/
.noticebg{background:url(http://a.zimgs.cn/b/n/bbs/images/wind/bg.png) 0 -10px repeat-x;}
 #notice{padding:10px;height:18px;overflow:hidden;background:url(http://a.zimgs.cn/b/n/bbs/images/wind/file/anc.png) 12px 12px no-repeat;}
 #notice li{list-style:none;float:left;white-space:nowrap;padding-left:1.6em;height:18px;}
 #notice a{padding-right:.5em;}
/*文字ad*/
.ad-text{margin:0 auto 8px;border:1px solid #d5e6ed;border-bottom:0;background:#ffffff;}
.ad-text .tr3 td,.ad-text .tr3 th{border-bottom:1px solid #d5e6ed;padding:.4em .6em;}
/*栏目导航*/
#nav-global,.nav-left,.nav-right{background:url(http://a.zimgs.cn/b/n/bbs/images/wind/nav-bg.png);}
.nav-left,.nav-right{width:10px;height:32px;}
.nav-left{ background-position:0 0;_margin-right:-3px;}
.nav-right{ background-position:0 -32px;_margin-left:-3px;}
#nav-global{ background-position:0 -64px;height:32px;overflow:hidden;}
 #nav-global ul{font-size:14px; font-weight:700;padding-left:15px;}
 #nav-global li{margin:5px 5px 0 0;float:left;background:url(http://a.zimgs.cn/b/n/bbs/images/wind/nav-li.png) 5px right no-repeat;}
 #nav-global li a{float:left;color:#ffffff;padding:0 14px 0 7px;height:27px;line-height:23px;}
 #nav-global .current,#nav-global .current a{}
 #nav-global .current a{background-position:bottom right;color:#FFF;margin-left:5px;display:inline;}
 #nav-s{background:url(http://a.zimgs.cn/b/n/bbs/images/wind/nav-search.png);width:245px;height:32px;overflow:hidden; float:right;_margin-left:-3px;}
 #nav-s .fr{margin:12px 18px 0 0;line-height:14px;}
 .s-btn,.s-input{background:none;border:0;}
 .s-btn{ cursor:pointer;width:42px;height:21px;vertical-align:middle !important;vertical-align:baseline;}
 .s-input{height:17px;padding:4px 1px 0;width:97px;margin:6px 0 0 48px;}
.index-info{background:#ffffff;width:98%;max-width:1200px;margin:0 auto;}
 .index-info td{padding:6px 0 6px 10px;line-height:24px;}
 .index-info a{margin-right:10px;}
.forum-info{background:#ffffff;padding:0 10px 6px 10px;line-height:1;border-bottom:1px solid #9fb7e7;}
/*用户登录*/
.user-table td{padding:1em 1em .5em 2em;}
/*table*/
.t{border:1px solid #9fb7e7;background:#ffffff;}
.t table{width:100%;}
.t3{margin:5px auto;}
.t5{border:1px solid #d5e6ed;}
.t,.t5{margin:0 auto 10px; height:auto; overflow:hidden;}
/*table head*/
.h{border-bottom:1px solid #abc8ea;background:url(http://a.zimgs.cn/b/n/bbs/images/wind/h.png) 0 bottom repeat-x;text-align:left;color:#3366cc;padding:2px 10px 0; line-height:220%;}
.h span{font-weight:normal;}
.h h2{font-weight:bold}
.h a{font-family:Arial;color:#3366cc}
.h span a,.h span{color:#3366cc;}
.closeicon{margin-top:.3em}
.cate_fold{padding:0 5px 0 5px;margin-bottom:2px;text-decoration:none;}
.cate_fold:hover{text-decoration:none;}
/*table tr1*/
.tr1 th{padding:5px 10px;text-align:left;vertical-align:top;font-weight:normal;}
.tr1 td.td1{border-bottom:1px solid #d5e6ed;}
/*table tr2*/
.tr2{background:#ffffff url(http://a.zimgs.cn/b/n/bbs/images/wind/tr2.png) 0 bottom repeat-x;color:#888888;}
.tr2 td,.tr2 th{line-height:18px;border-bottom:1px solid #c5d8e8;padding:2px 6px;*padding:4px 6px 1px;}
.tr2 a{color:#888888;margin:0 2px 0}
/*table tr3*/
.tr3{ line-height:1.5;}
.tr3 td,.tr3 th{border-bottom:1px solid #d5e6ed;padding:.6em;}
.tr3 th{text-align:left;font-weight:normal;}
.z .tr3:hover{background:#f3f9fb;}
.tr td,.tr th{padding:2px}
.tr5 td{border-right:1px solid #d5e6ed;border-bottom:1px solid #d5e6ed;padding-left:.5em;}/*帖子表格*/
/*浏览页*/
h1,.read_h1{font-size:16px;margin:15px;color:#3366cc; font-weight:700;line-height:1;}
.honor{color:#777;padding:0 10px 5px 0;overflow:hidden;}
.tpc_content{font-family:Arial;padding:0 15px 3em 15px;margin:0;line-height:2em;}
.tpc_content font{line-height:1.5em;}
.tpc_content a{text-decoration:none;color:#0070AF;}
.tpc_content a:hover{text-decoration:underline}
.tpc_content ol{list-style-type:decimal;}
.tpc_content ul{list-style-type:disc;}
.tips{background:#f3f9fb;border:1px solid #d5e6ed;padding:3px 5px;}
.tips2{padding:10px 0;border-top:1px dashed #d5e6ed;}
.tips,.tips2{margin:5px 15px 5px 15px;text-align:left;line-height:24px;float:left;display:inline;}
.tips2 li{list-style:none;width:30%;height:24px;min-width:210px;margin:0 10px 0 0;float:left;overflow:hidden;text-overflow:ellipsis;}
.tiptop{border-bottom:1px dashed #ccc ;padding:0 0 0 1px;height:27px;line-height:27px;margin:0 15px;}
.tipad{margin:20px 15px 10px;}
.tipad .fr a{color:#888;}
blockquote{padding-left:1em;}
.blockquote3{width:80%;border:1px dashed #CCC;background:#f7f7f7 url(http://a.zimgs.cn/b/n/bbs/images/blockquote3.png) right top no-repeat;margin:10px 0;padding:5px 10px;}
.blockquote3 .quote{color:#999;font-size:12px;}
.blockquote3 .text{padding:0 10px 10px 10px;}
.blockquote{zoom:1;padding:5px 8px 5px;line-height:1.3;border:1px solid #f7e084;background:#ffffdb;color:#000;margin:0 15px;}
.quote{width:67%;}
.block-img{background:#fffae1 url(http://a.zimgs.cn/b/n/bbs/images/attention.png) 8px 6px no-repeat;padding-left:28px;margin:0 15px 10px;}
.blockquote2{border: 1px solid; border-color: #c0c0c0 #ededed #ededed #c0c0c0;margin:0px;padding:0 0 0 2em;line-height:2em;overflow:hidden;background:#fff}
.blockquote2 ol{margin:0 0 0 1.5em;padding:0;}
.blockquote2 ol li{border-left:1px solid #ccc;background:#f7f7f7;padding-left:10px;font-size:12px;font-family:"Courier New" serif;list-style-type:decimal-leading-zero;padding-right:1em;}
.blockquote2 ol li:hover{background:#fff;color:#008ef1;}
.blockquote2 ol li{list-style-type:decimal;}
/*pages*/
.pages a,.pages b,.pages .pagesone{padding:0 7px;display:block;float:left;margin-right:3px;}
.pages a{color:#333;border:1px solid #ddd;background:#ffffff;}
.pages b,.pages a:hover{background:#3366cc;;color:#ffffff;border:1px solid #3366cc;text-decoration:none;}
.pages .pagesone{border:1px solid #ccc;background:#ffffff;font:11px Verdana;line-height:18px;}
.pages input{border:1px solid #cccccc;padding:0;font:10px Verdana;margin-top:-3px;*margin-top:0;}
/*5像素圆角*/
.y-bg2,.y-bg3,.y-bg4{background:#ffffff;}
.y-bg{margin:0 4px;border-top:1px solid #d5e6ed;}
.y-bg2{margin:0 2px;height:1px;border:2px solid #d5e6ed;border-top:0;border-bottom:0;overflow:hidden;}
.y-bg3{margin:0 1px;height:2px;border:1px solid #d5e6ed;border-top:0;border-bottom:0;overflow:hidden;}
.y-bg4{padding:0 10px;border:1px solid #d5e6ed;border-top:0;border-bottom:0;overflow:hidden;}
/*menu*/
.menu{position:absolute;background:#fff;border:1px solid #d5e6ed;}
.menu a{display:block;padding:4px 8px;}
/*下拉框*/
.menu-post{border:2px solid #d5e6ed;padding:1px;background:#9fb7e7;}
.menu-post .menu-b{border:1px solid #fff;background:#ffffff;}
.menu-b .h{border-bottom:1px solid #abc8ea;}
/*弹出框 popout*/
.popoutContent{background:#ffffff;border:1px solid #9fb7e7;}
.bgcorner1,.bgcorner2,.bgcorner3,.bgcorner4,.pobg1,.pobg2,.pobg3,.pobg4{filter:Alpha(opacity=90);_filter:Alpha(opacity=90);opacity:.9;overflow:hidden; z-index:1005; line-height:0 }
.bgcorner1,.bgcorner2,.bgcorner3,.bgcorner4{width:5px;height:5px;background:#9fb7e7;}
.bgcorner1{background-position: 0 0 }
.bgcorner2{background-position: -5px 0 }
.bgcorner3{background-position: -5px -5px}
.bgcorner4{background-position:0 -5px}
.pobg1,.pobg2,.pobg3,.pobg4{ background:#9fb7e7;}
.pobg1{height:5px; }
.pobg2{width:5px;}
.pobg3{height:5px;}
.pobg4{width:5px;}
.popoutContent td{padding:.5em .6em;border-bottom:1px solid #d5e6ed;}
/*span color 数值自定义*/
.black,.black a{color:#333}
.s1{color:#008000;} /*绿*/
.s2{color:#984B98;} /*紫*/
.s3{color:#ff6600;} /*橙*/
.s4,.s4 a{color:#3366cc;} /*蓝*/
.s5 a{color:#3366cc;}
.gray,.gray a{color:#888888;} /*次要字颜色*/
.gray2,.gray2 a{color:#bbbbbb;}
.red{color:#ff0000;}/*红*/
/*7.5,登录*/
.mr5{margin-right:5px;}
a.select_arrow{background:url(http://a.zimgs.cn/b/n/bbs/images/select_arrow.gif) no-repeat;display:block;text-indent:-2000em;height:15px;width:15px;margin:0 2px 0 0;overflow:hidden;}
a.select_arrow:hover{background:url(http://a.zimgs.cn/b/n/bbs/images/select_arrow_over.gif) no-repeat;}
.sel_name li{border-bottom:1px solid #d5e6ed;}
</style><!--css-->
<style type="text/css">
body,div,button,ul,li,p,dl,dd,h1,h2,h3,h4,h5,h6,img,iframe,form{margin:0px;padding:0px;list-style-type:none; border:0px;}
.fix:after{content:"."; display:block; clear:both; visibility:hidden; height:0px;}
.fix{ zoom:1;}
.lf{ float:left;}
.rf{ float:right;}
.disp{ display:block;}
.undisp{ display:none;}
#y_bd{ width:517px; height:320px; margin:0px auto; background:transparent url(http://a.zimgs.cn/b/n/bbs/images/bbs_left.gif) top left no-repeat; padding-left:23px;}
#y_bd a{ text-decoration:none;}
#y_bd a:hover{ text-decoration:underline;}
#y_bd .left{ width:494px; background:#fff;}
#y_bd .left .title{ width:494px; height:32px; line-height:32px; padding-top:10px; font-size:13px; color:#333333; background:url(http://a.zimgs.cn/b/n/bbs/images/bbs_title.gif) top left no-repeat;}
#y_bd .left .con{ height:244px; width:314px; background:url(http://a.zimgs.cn/b/n/bbs/images/bbs_lo.jpg) top left no-repeat; padding:15px 0px 0px 180px; margin:0px;}
#y_bd .left .con a{ color:#333333; font-weight:bold;}
#y_bd .left .con p{ color:#333333; height:24px; line-height:24px;}
#y_bd .left .con p .alert{ color:#cc0033; background:url(http://a.zimgs.cn/b/n/bbs/images/error.gif) left center no-repeat; padding-left:17px; margin-left:14px;}
#y_bd .left .con p .check{ border:0px; width:13px; height:13px; background:url(http://a.zimgs.cn/b/n/bbs/images/check.gif); color:#008000;}
#y_bd .left .con p .btn{ width:88px; height:23px; border:0px; background:url(http://a.zimgs.cn/b/n/bbs/images/btn.gif); margin-left:100px; margin-top:20px;}
#y_bd .left .con .s_n{ border:1px solid #cccccc; width:119px; height:18px;}
#y_bd .left .bottom{ height:19px; width:494px;border:0px; background:url(http://a.zimgs.cn/b/n/bbs/images/bbs_bottom.gif) top left no-repeat;}
#y_bd .right{ width:23px; height:320px; background:url(http://a.zimgs.cn/b/n/bbs/images/bbs_right.gif) top left no-repeat;}
.mask{ position:absolute; left:0px; top:0px; width:100%; height:7000px; z-index:90001; background:#fff;opacity:0.6; filter:Alpha(opacity=60);}
.position{ position:fixed; bottom:200px; width:100%; z-index:90002; _position:absolute;}
</style>

<!--[if IE]>
<style type="text/css">
.tr1 td.td1{border-top:0}
.t4{padding:0}
.t table{border-collapse:collapse;}
.t {padding:0}
</style>
<![endif]-->

<script type="text/javascript" language="JavaScript" src="http://a.zimgs.cn/b/n/bbs/js/pw_ajax.js"></script>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript" src="http://a.zimgs.cn/b/n/bbs/js/core/core.js"></SCRIPT>
<script language="JavaScript">
var imgpath = 'images';
var verifyhash = 'ce0604f4';
var modeimg = '';
var modeBase = '';
var winduid = '';
var windid = '';
var groupid = 'guest';
var basename = '';
var temp_basename = '';
</script>
</head>

<body onkeydown="try{keyCodes(event);}catch(e){}">




<iframe name="pwl" align=middle marginwidth=-1 marginheight=0 width=0 height=0 hspace=0 src="http://bbs.cn.chins.com/pw_log.php" frameborder=no scrolling=no></iframe>

<div class="topbar">
 <div id="nav-operate">
 <table width="100%" cellpadding="0" cellspacing="0" border="0">
 <tr class="vt">
 <td width="400">

 <a href="login.php" title="登录" class="b">登录</a> <a href="register.php" class="b">注册</a>

 </td>
 <td>
 <ul class="fr">

 <li><a href="http://cn.chins.com/" id="td_ID45" target="_blank">返回首页</a></li>

 <li><a href="http://bbs.cn.chins.com/" id="td_ID101" target="_blank">文章首页</a></li>

 <li><a href="http://bbs.chins.cn/search.php" id="td_ID52" target="_blank"><b>文章搜索</b></a></li>

 <li><a href="http://bbs.chins.cn/thread-htm-fid-236.html" id="td_ID46" target="_blank"><b>雨人之窗</b></a></li>

 <li><a href="http://mail.cn.chins.com/" id="td_ID100" target="_blank">邮箱</a></li>

 <li><a href="http://help.cn.chins.com/answerpage_pbbs.html" id="td_ID51" target="_blank">帮助中心</a></li>

 <li><a href="http://bbs.chins.cn/faq.php" id="td_ID90" target="_blank">使用说明</a></li>

 </ul>
 </td>
 </tr>
 </table>
 </div>
</div>
<div id="header">
 <div id="head">
 <table cellpadding="0" cellspacing="0" width="100%">
 <tr>
 <td><a href="http://bbs.cn.chins.com/" class="fl"><img src="http://cn.yimg.com/bbs/test/logo_0303.gif" style="margin:15px 0;"/></a></td>
 <td id="banner" align="right">

 </td>
 </tr>
 </table>
 </div>
 <div class="nav-wrap">
 <div id="nav">
 <span class="nav-left fl"></span>
 <span class="nav-right fr"></span>
 <div id="nav-global">
 <ul class="cc">
 <li><a href="http://bbs.chins.cn/index.php?cateid-78.html" id="td_KEYbbs">杂谈</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-64.html" id="td_KEYarea">情感</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-71.html" id="td_KEYo">文学</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-91.html" id="td_ID67">休闲</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-9.html" id="td_ID66">时尚</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-98.html" id="td_ID68">地方</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-249.html" id="td_ID69">车友会</a></li><li><a href="http://gongyi.cn.chins.com/" id="td_ID70">公益</a></li><li><a href="http://bbs.chins.cn/index-htm-cateid-84.html" id="td_ID106">财经</a></li><li><a href="http://bbs.chins.cn/index-htm-cateid-317.html" id="td_ID105" target="_blank">乐玩</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-232.html" id="td_ID99">淘CLUB</a></li><li><a href="http://newspic.cn.chins.com/bbs/index.html" id="td_ID91" target="_blank">文章画报</a></li><li><a href="http://bbs.chins.cn/" id="td_ID92">文章地图</a></li><li><a href="http://bbs.chins.cn/index.php?cateid-103.html" id="td_ID71">文章站务</a></li>
 </ul>
 </div>
 </div>
 </div>
</div>

<div id="menu_skin" class="menu menu-post cc" style="display:none;">
 <div class="menu-b" style="width:9em;">

 <a href="#" onclick="window.location=('/u.php?action=show&uid=123456&skinco=chins');return false;"><font  color=#3366cc>■chins</font></a>

 <a href="#" onclick="window.location=('/u.php?action=show&uid=123456&skinco=wind');return false;"><font  color=#3366cc>■wind</font></a>

 </div>
</div>

<div id="menu_shortcut" class="menu menu-post cc" style="display:none;">
 <div class="menu-b" style="width:9em;width:150px;">

 <a href="thread-htm-fid-328.html">聚焦</a>

 <a href="thread-htm-fid-105.html">社会杂谈</a>

 <a href="thread-htm-fid-320.html">活动中心</a>

 <a href="thread-htm-fid-92.html">水吧</a>

 <a href="thread-htm-fid-5.html">女人爱晒</a>

 <a href="thread-htm-fid-340.html">谈股论经</a>

 </div>
</div>


 <!--div class="mask" style=" display:block;"></div>

<div class="bottom tac position" style="background:none; border:0px;">
<div id="y_bd" class="fix">
 <div class="lf left" style="text-align:left;">
 <h1 class="title">文章昵称修改</h1>
 <div class="con">
 <p><b>请输入您在“文章”的昵称:</b></p>
 <p>*用户提示:请认真填写您的昵称,<b style="color:#cc0033;">一经确认将不可更改</b></p>
 <p style="padding:36px 0px;">昵称:<input class="s_n" type="text" name="nickname" id="nickname" maxlength="12"/><span id="error">                    </span></p>
 <p>
 <input id="agree" class="check" type="checkbox" checked="checked" />  我已看过并同意下面的协议</p>
 <p style="padding-left:25px;"><a href="http://help.cn.chins.com/answerpage_pbbs.html" target="_blank">文章管理规定</a></p>
 <p><input class="btn" type="button" onclick="check_nickname();"/></p>
 </div>
 <div class="bottom"></div>
 </div>
 <div class="rf right"></div>
 <script>
 function InitAjax()
 {
 var ajax=false;
   try {
    ajax = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
    try {
     ajax = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) { var
     ajax = false;
    }
   }
   if (!ajax && typeof XMLHttpRequest!='undefined') {
    ajax = new XMLHttpRequest();
   }
   return ajax;
 }
 function DataLength(str)
{
        var intLength=0;
        for(var i=0;i<str.length;i++){
                if((str.charCodeAt(i) < 0) || (str.charCodeAt(i) > 255))
                        intLength=intLength+2;
                else
                        intLength=intLength+1;
        }
        return intLength;
}
 function check_nickname(uid)
 {
 if(typeof(uid) == 'undefined')
   {
     return false;
   }
 var name = document.getElementById("nickname");
 var error = document.getElementById("error");
 if(trim(name.value)=='')
 {
 error.className = 'alert';
 error.innerHTML = "请输入昵称";
 name.focus();
 return false;
 }

 if(DataLength(name.value) > 12){
        error.className = 'alert';
        error.innerHTML = "输入昵称过长,请重新输入";
        name.focus();
        return false;
 }
 var url = "./pw_ajax.php?action=nickname&uid="+ uid +"&field_name=" + encodeURIComponent(name.value) + "&random="+Math.random();
   //实例化Ajax对象 class="alert"
   var ajaxs = InitAjax();
   //使用Get方式进行请求
   ajaxs.open("GET", url, true);
   //获取执行状态
   ajaxs.onreadystatechange = function() {
    //如果执行是状态正常,那么就把返回的内容赋值给上面指定的层
    if (ajaxs.readyState == 4 && ajaxs.status == 200) {
 id = ajaxs.responseText;
 if(id == 2){
 //已占用
 error.className = 'alert';
 error.innerHTML = "已被占用";
 name.focus();
 }else if (id == 3)
 {
 //添加成功
 window.location.reload();
 }else if (id == 4)
 {
 //未登录
 }
     //show.innerHTML = ajax.responseText;
    }
   }
   //发送空
   ajaxs.send(null);
 }
 function trim(str){ //删除左右两端的空格
 return str.replace(/(^\s*)|(\s*$)/g, "");
 }
 function ltrim(str){ //删除左边的空格
 return str.replace(/(^\s*)/g,"");
 }
 function rtrim(str){ //删除右边的空格
 return str.replace(/(\s*$)/g,"");
 }
 </script>
</div>

 </div-->

<div class="main-wrap">
<div id="main">


<!--<div id="breadCrumb">
                <a href="index.php">文章</a> » 
                <a href="u.php">用户中心</a>

                 » anitasyk的

</div>-->
<style type="text/css">
.s3,a.s3{color:#f06f18;}
#u-wrap{width:100%;background:url(images/wind/u-wrap.gif) repeat-x #fcfcf3;line-height:150%}
#u-wrap2{width:940px;margin:auto;background:url(images/wind/u-wrap.gif) repeat-x #fcfcf3;}
#u-sidebar{width:200px;float:left}
#u-content{width:720px;float:right}
#u-top{width:100%;height:70px;position:relative}
#u-contentside{width:200px;float:right;border-left:1px solid #d5e6ed;padding-left:15px}
#u-top-nav{position:absolute;bottom:0;height:30px;}
#u-top-nav ul,#u-top-nav li{height:30px;float:left;padding:0;margin:0;list-style:none;}
#u-top-nav li a{float:left;padding:0 .8em;margin-right:.5em;font-size:12px;background:#d5e6ed;color:#3366cc;line-height:27px;margin-top:2px;}
#u-top-nav li a:hover{text-decoration:none;background:#3366cc;color:#e8f5fb;}
#u-top-nav li.current a{color:#888888;border:1px solid #9fb7e7;border-bottom:0;height:29px;background:#fcfcf3;margin-top:0}
#u-top-nav li.current a:hover{color:#888888;}
#u-contentmain{width:500px;float:left;}
#u-portrait{padding:.7em;border:1px dotted #c5d8e8;background:#fcfcf3}
#u-portrait table{table-layout:fixed;overflow:hidden;width:100%}
.bgA{background:#f3f9fb;}
.u-h1{font-size:16px;display:inline;padding:0;margin:0}
.u-h5{padding:1em 0 .5em;margin:0;font-size:1.05em;position:relative; background:url(images/wind/dotline.gif) repeat-x 0 1.6em}
.u-h5 span{background:#fcfcf3;padding-right:.5em}
.u-h5 .r{position:absolute;right:0;background:#fcfcf3;font-size:1em;font-weight:100;padding:0 .5em}
.feed-list,.article-list{padding:.3em 2em .3em 0;margin:0 0 0 1.5em;border-bottom:1px dotted #c5d8e8;color:#888888}
.feed-list dt,.feed-list dd{padding:0;margin:0;line-height:none}
.article-list dd{display:inline;margin:0 1em 0 0}
.link1{color:#3366cc}
.u-content-66 {width:63%;}
.u-content-33 {width:33%}
.u-table td,.u-table th{border-bottom:1px dotted #c5d8e8;text-align:left;padding:.5em;vertical-align:top}
.u-table td{color:#aaa;}
.u-table th{font-weight:100;}
.u-table .fav{background:url(images/wind/u-fav.gif) no-repeat 0.5em 0.6em;padding-left:2em}
.u-table .current{background-image:url(images/wind/u-fav-cur.gif);font-weight:bold}
.u-table .forum{background-image:url(images/wind/u-fav-forums.gif)}
.u-table2{border:1px dotted #c5d8e8;margin-top:1em;}
.u-table2 td{text-align:center;padding:.2em 0}
.u-table2 td:hover{background:#ffffff;}
.u-table2 td.current{font-weight:700;background:#ffffff;}
</style>
<div id="u-wrap">
        <div id="u-wrap2" class="cc">
                <div id="u-sidebar">
<div id="u-portrait">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr>
<td align="center"><img class="pic" src="images/face/none.gif?1306597125" width="80" height="80" border="0"></td>
                </tr>
        </table>
</div>
<div style="padding:.6em 1.2em" class="bgA">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr><td class="gray">等级</td><td>白丁</td></tr>

        </table>
</div>

<div class="bdbA" style="padding:.5em 0">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr>
<td align="center"><img src="images/email.gif" align="absmiddle" /> <a href="message.php?action=write&touid=123456" target="_blank">发短消息</a></td>
<td align="center">

<img src="images/wind/u-adf-no.gif" a="absmiddle" title="离线" />
<a onclick="ajax.send('pw_ajax.php?action=addfriend&touid=123456','',ajax.get);" style="cursor:pointer" title="离线" >加为好友</a></td>

                </tr>
        </table>
</div>
                </div>
                <div id="u-content">
<div id="u-top">
        <table border="0" cellspacing="0" cellpadding="0" style="margin-top:.2em; float:left; height:40px; vertical-align:middle">
                <tr>
<td><h1 class="u-h1 b">anitasyk</h1>
</td>
<td style="padding-left:1em; line-height:120%">

        



</td>
                </tr>
        </table>
        <div class="c"></div>
        <div id="u-top-nav">
                <ul class="b">
<li id="u_index"><a href="u.php?uid=123456">个人首页</a></li>
<li id="u_show"><a href="u.php?action=show&uid=123456">资料</a></li>
<li id="u_topic"><a href="u.php?action=topic&uid=123456">主题</a></li>
<li id="u_post"><a href="u.php?action=post&uid=123456">回复</a></li>
<li id="u_favor"><a href="u.php?action=favor&uid=123456">收藏</a></li>
<li id="u_friend"><a href="u.php?action=friend&uid=123456">好友</a></li>
<li id="u_trade"><a href="u.php?action=trade&uid=123456">商品</a></li>

                </ul>
                <script language="javascript">setCurrent('u_show','u_index','current');</script>
        </div>
</div>

<div class="u-content-66 fl">
        <div id="u-profile">
                <h5 class="u-h5"><span>个人信息</span></h5>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="u-table" style="table-layout:fixed">

<tr>
        <td>UID</td>
        <th width="75%">123456</th>
</tr>
<tr>
        <td>性别</td>
        <th width="75%">

保密

        </th>
</tr>
<tr>
        <td>生日</td>
        <th>0000-00-00<br /></th>
</tr>

<tr>
        <td>昵称</td>
        <th>anitasyk<br /></th>
</tr>

<tr>
        <td>勋章</td>
        <th>

        该用户还没有获得勋章

        </th>
</tr>

<tr>
        <td>Email</td>
        <th><img src="images/email.gif" border="0"><br /></th>
</tr>

<tr>
<td>自我简介</td>
        <th><div style="overflow:hidden;"><br /></div></th>
</tr>

                </table>
        </div>
</div>
<div class="u-content-33 fr">
        <div id="u-profile-s">
                <h5 class="u-h5"><span>站点资历</span></h5>
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="u-table">
<tr>
        <td>注册时间 </td>
        <th>2007-11-12</th>
</tr>
<tr>
        <td>在线时间</td>
        <th>0 </th>
</tr>
<tr>
        <td>最后登录</td>
        <th>2007-11-12</th>
</tr>

<tr>
        <td>综合积分</td>
        <th>0 </th>
</tr>
<tr>
        <td>发帖</td>
        <th>0 </th>
</tr>
<tr>
        <td>平均日发帖</td>
        <th>0 (今日:0)</th>
</tr>
<tr>
        <td>精华</td>
        <th>0 </th>
</tr>
<tr>
        <td>牙牙</td>
        <th>0 牙</th>
</tr>
<tr>
        <td>人气</td>
        <th>0 点 </th>
</tr>
<tr>
        <td>积分</td>
        <th>0 分 </th>
</tr>
<tr>
        <td>贡献值</td>
        <th>0 点 </th>
</tr>
<tr>
        <td>交易币</td>
        <th>0 枚 </th>
</tr>        

<tr>
        <td>“保送生”计划得分</td>
        <th>0 分
        <br /><span class="gray">(“保送生”计划活动积分)</span></th>
</tr>

                </table>
        </div>
</div>
<div class="c"></div>
<div class="u-profile">
        <h5 class="u-h5"><span>帖间签名</span></h5>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="u-table">
                <tr>
<th><div style="overflow:hidden;"><br /></div></th>
                </tr>
        </table>
</div>

                </div>
        </div>
</div>

</div></div><!--.main-wrap,#main End-->
<div class="footer-wrap">
<div class="c"></div>
<div id="bottom"></div>

<div class="c"></div>
<div id="footer">
<div id="mode-footer" class="mt">
 <div class="bottom cc tac">
 <ul>

 </ul>
 </div>
 <center class="f12 gray"><span id="windspend"> Copyright © 2010 chins.com.cn 版权所有 不得转载</span><br />
 <a href="http://www.miibeian.gov.cn/" target="_blank">京 ICP证000022号</a> <a href="http://www.hd315.gov.cn/beian /view.asp?bianhao=0102000121100054" target="_blank"><img border="0" align="absmiddle" src="http://cn.yimg.com/i/lg/gs.gif"/></a> | <a href="http://cn.yimg.com/wy /ycn_20090416.gif" target="_blank">增值电信业务经营许可证B2-20040219</a> | <a href="http://cn.chins.com/licence /yjj0039.html" target="_blank">国家药监局(京)-经营性-2004-0039</a><span id="stats"></span>

 </center></div></div></div>

<script language="JavaScript">
/*
 *对话框类。
 *使用举例:
 *@example
 new PwMenu('boxID').guide();
 *
 */
/**
 *@param String id 对话框的id,若不传递,则默认为pw_box
 */

PWMENU_ZINDEX=0;
function PwMenu(id){
 this.pid = null;
 this.obj = null;
 this.w = null;
 this.h = null;
 this.t = 0;
 this.menu = null;
 this.mid = id;
 this.init(id);
}
PwMenu.prototype = {
 init : function(id) {
 this.menu = getPWBox(id);
 var _ = this;
 document.body.insertBefore(this.menu,document.body.firstChild);
 _.menu.style.zIndex=PWMENU_ZINDEX+2147483647+"";
 PWMENU_ZINDEX+=2147483647;
 },
 guide : function() {
 this.menu=this.menu||getPWBox(this.mid);
 this.menu.className = '';
 this.menu.innerHTML = '<div class="popout"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td class="bgcorner1"></td><td class="pobg1"></td><td class="bgcorner2"></td></tr><tr><td class="pobg4"></td><td><div class="popoutContent" style="padding:20px;"><img src="'+imgpath+'/loading.gif" align="absmiddle" /> 正在加载数据...</div></td><td class="pobg2"></td></tr><tr><td class="bgcorner4"></td><td class="pobg3"></td><td class="bgcorner3"></td></tr></tbody></table></div>';
 this.menupz(this.obj);
 },
 close : function() {
 var _=this;
 read.t = setTimeout(function()
 {
 _.menu?0:_.menu=read.menu;
 if(_.menu)
 {
 _.menu.style.display = 'none';
 _.menu.className = '';
 }
 },100);
 },
 setMenu : function(element,type,border){
 if (type) {
 this.menu=this.menu||getPWBox(this.mid);
 var thisobj = this.menu;
 } else {
 var thisobj = getPWContainer(this.mid,border);

 }
 if (typeof(element) == 'string') {
 thisobj.innerHTML = element;
 } else {
 while (thisobj.hasChildNodes()) {
 thisobj.removeChild(thisobj.firstChild);
 }
 thisobj.appendChild(element);
 }
 },
 move : function(e) {
 if (is_ie) {
 document.body.onselectstart = function(){return false;}
 }
 var e = is_ie ? window.event : e;
 var o = this.menu||getPWBox(this.mid);
 var x = e.clientX;
 var y = e.clientY;
 this.w = e.clientX - parseInt(o.offsetLeft);
 this.h = e.clientY - parseInt(o.offsetTop);
 var _=this;
 document.onmousemove = function(e) {
 _.menu=_.menu||getPWBox(_.mid);
 var e = is_ie ? window.event : e;
 var x = e.clientX;
 var y = e.clientY;
 _.menu.style.left = x - _.w + 'px';
 _.menu.style.top = y - _.h + 'px';
 };
 document.onmouseup = function() {
 if (is_ie) {
 document.body.onselectstart = function(){return true;}
 }
 document.onmousemove = '';
 document.onmouseup = '';
 };
 },
 open : function(idName,object,type,pz) {
 this.menu=this.menu||getPWBox(this.mid);
 clearTimeout(read.t);
 if (typeof type == "undefined") type = 1;
 if (typeof pz == "undefined") pz = 0;
 if (typeof idName == 'string') {
 idName = getObj(idName);
 }
 this.setMenu(idName.innerHTML,1);
 this.menu.className = idName.className;
 this.menupz(object,pz);
 var _=this;
 if (type != 2) {
 getObj(object).onmouseout = function() {
 _.close();
 getObj(object).onmouseout = '';
 };
 this.menu.onmouseout = _.close;
 this.menu.onmouseover = function() {
 clearTimeout(read.t);
 }
 }
 },
 menupz : function(obj,pz) {
 this.menu=this.menu||getPWBox(this.mid);
 this.menu.onmouseout = '';
 this.menu.style.display = '';
 //this.menu.style.zIndex = 3000;
 this.menu.style.left = '-500px';
 this.menu.style.visibility = 'visible';
 if (typeof obj == 'string') {
 obj = getObj(obj);
 }
 if (obj == null) {
 if (is_ie && false) {
 this.menu.style.top = (ietruebody().offsetHeight - this.menu.offsetHeight)/3 + getTop() +($('upPanel')?$('upPanel').scrollTop:0)+ 'px';
 this.menu.style.left = (ietruebody().offsetWidth - this.menu.offsetWidth)/2 + 'px';
 } else {
 this.menu.style.top = (ietruebody().clientHeight - this.menu.offsetHeight)/3 + getTop() + 'px';
 this.menu.style.left = (ietruebody().clientWidth - this.menu.offsetWidth)/2 + 'px';
 }
 } else {
 var top = findPosY(obj);
 var left = findPosX(obj);
 var pz_h = Math.floor(pz/10);
 var pz_w = pz % 10;
 if (is_ie) {
 var offsetheight = ietruebody().offsetHeight;
 var offsethwidth = ietruebody().offsetWidth;
 } else {
 var offsetheight = ietruebody().clientHeight;
 var offsethwidth = ietruebody().clientWidth;
 }
 if (pz_h!=1 && (pz_h==2 || top < offsetheight/2)) {
 top += getTop() + obj.offsetHeight;
 } else {
 top += getTop() - this.menu.offsetHeight;
 }
 if (pz_w!=1 && (pz_w==2 || left > (offsethwidth)*3/5)) {
 left -= this.menu.offsetWidth - obj.offsetWidth + getLeft();
 } else {
 left += getLeft();
 }
 this.menu.style.top = top+ 'px';
 if(top<0)
 {
 this.menu.style.top = 0 + 'px';
 }
 this.menu.style.left = left + 'px';
 if(left+this.menu.offsetWidth>document.body.offsetWidth)
 {
 this.menu.style.left = document.body.offsetWidth-this.menu.offsetWidth-30 + 'px';
 }
 }
 },
 InitMenu : function(callBack) {
 var _=this;
 function setopen(a,b) {
 if (getObj(a)) {
 getObj(a).onmouseover=function(){_.open(b,a);callBack?callBack(b):0};
 try{getObj(a).parentNode.onfocus = function(){_.open(b,a);callBack?callBack(b):0};}catch(e){}
 }
 }
 for (var i in openmenu)
 setopen(i,openmenu[i]);
 },
 IsShow : function() {
 this.menu=this.menu||getPWBox(this.mid);
 return (this.menu.hasChildNodes() && this.menu.style.display != 'none') ? true : false;
 }
};
var read = new PwMenu();
setTimeout(function()
{
 //alert(read.move({}));
},5000);
function closep() {
 read.menu.style.display = 'none';
 read.menu.className = '';
 $('select_p_type').style.display="inline";
}
function findPosX(obj) {
 var curleft = 0;
 if (obj.offsetParent) {
 while (obj.offsetParent) {
 curleft += obj.offsetLeft
 obj = obj.offsetParent;
 }
 } else if (obj.x) {
 curleft += obj.x;
 }
 return curleft - getLeft();
}
function findPosY(obj) {
 var curtop = 0;
 if (obj.offsetParent) {
 while (obj.offsetParent) {
 curtop += obj.offsetTop
 obj = obj.offsetParent;
 }
 } else if (obj.y) {
 curtop += obj.y;
 }
 return curtop - getTop();
}
function in_array(str,a){
 for (var i=0; i<a.length; i++) {
 if(str == a[i]) return true;
 }
 return false;
}
function loadjs(path, code, id,callBack) {
 if (typeof id == 'undefined') id = '';
 if (id != '' && IsElement(id)) {
 return false;
 }
 var header = document.getElementsByTagName("head")[0];
 var s = document.createElement("script");
 if (id) s.id = id;
 if (path) {
 s.src = path;
 } else if (code) {
 s.text = code;
 }
 if(document.all)
 {
 s.onreadystatechange=function()
 {
 if(s.readyState=="loaded"||s.readyState=="complete")
 {
 callBack?callBack():0;
 }
 };
 }
 else
 {
 try{s.onload = callBack?callBack:null;}catch(e){callBack?callBack():0;}
 }
 header.appendChild(s);
 return true;
}
function keyCodes(e) {
 if (read.menu.style.display == '' && e.keyCode == 27) {
 read.close();
 }
}
function opencode(menu,td) {
 if (read.IsShow() && read.menu.firstChild.id == 'ckcode') return;
 read.open(menu,td,2,11);
 getObj('ckcode').src = 'ck.php?nowtime=' + new Date().getTime();
 document.body.attachEvent("onmousedown",function(e) {
 var o = is_ie ? window.event.srcElement : e.target;
 var f = is_ie ? false : true;//firefox e.type = click by lh
 if( o!=getObj('ckcode') && o!=td )
 {
 return !!closep();
 }
 if (o == td || (f && e.type == "click")) {
 return;
 } else if (o.id == 'ckcode') {
 getObj('ckcode').src = 'ck.php?nowtime=' + new Date().getTime();
 } else {
 closep();
 document.body.onclick = null;
 }
 });
}
function getPWBox(type){
 if (getObj(type||'pw_box')) {
 return getObj(type||'pw_box');
 }
 var pw_box = elementBind('div',type||'pw_box','','position:absolute');
 document.body.appendChild(pw_box);
 return pw_box;
}
function getPWContainer(id,border){
 if (typeof(id)=='undefined') id='';
 if (getObj(id||'pw_box')) {
 var pw_box = getObj(id||'pw_box');
 } else {
 var pw_box = getPWBox(id);
 }
 if (getObj(id+'box_container')) {
 return getObj(id+'box_container');
 }
 if (border == 1) {
 pw_box.innerHTML = '<div class="popout"><div id="'+id+'box_container"></div></div>';
 } else {
 pw_box.innerHTML = '<div class="popout"><table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td class="bgcorner1"></td><td class="pobg1"></td><td class="bgcorner2"></td></tr><tr><td class="pobg4"></td><td><div class="popoutContent" id="'+id+'box_container"></div></td><td class="pobg2"></td></tr><tr><td class="bgcorner4"></td><td class="pobg3"></td><td class="bgcorner3"></td></tr></tbody></table></div>';
 }
 var popoutContent = getObj(id+'box_container');
 return popoutContent;
}
function elementBind(type,id,stylename,csstext){
 var element = document.createElement(type);
 if (id) {
 element.id = id;
 }
 if (typeof(stylename) == 'string') {
 element.className = stylename;
 }
 if (typeof(csstext) == 'string') {
 element.style.cssText = csstext;
 }
 return element;
}
function addChild(parent,type,id,stylename,csstext){
 parent = objCheck(parent);
 var child = elementBind(type,id,stylename,csstext);
 parent.appendChild(child);
 return child;
}
function delElement(id){
 id = objCheck(id);
 id.parentNode.removeChild(id);
}
function pwForumList(isLink,isPost,fid,handle,ifblank) {
 if (isLink == true) {
 if (isPost == true){
 if(ifblank == true) {
 window.open('post.php?fid='+fid);
 } else {
 window.location.href = 'post.php?fid='+fid;
 }
 if (is_ie) {
 window.event.returnValue = false;
 }
 } else {
 return true;
 }
 } else {
 if (gIsPost != isPost || read.menu.style.display=='none' || read.menu.innerHTML == '') {
 read.menu.innerHTML = '';
 if (isPost == true) {
 if (getObj('title_forumlist') == null) {
 showDialog('error','没有找到版块列表信息');
 }
 getObj('title_forumlist').innerHTML = '选择你要发帖的版块';
 } else {
 if (getObj('title_forumlist') == null) {
 showDialog('error','没有找到版块列表信息');
 }
 getObj('title_forumlist').innerHTML = '快速浏览';
 }
 gIsPost = isPost;
 if (handle.id.indexOf('pwb_')==-1) {
 read.open('menu_forumlist',handle,2);
 }
 } else {
 read.close();
 }
 }
 return false;
}
function char_cv(str){
 if (str != ''){
 str = str.replace(/</g,'<');
 str = str.replace(/%3C/g,'<');
 str = str.replace(/>/g,'>');
 str = str.replace(/%3E/g,'>');
 str = str.replace(/'/g,''');
 str = str.replace(/"/g,'"');
 }
 return str;
}
function showDialog(type,message,autohide,callback) {
 var container = elementBind('div','','','width:400px;');
 var title = elementBind('div','','h b','padding:0 .6em');
 title.innerHTML = '提示';
 container.appendChild(title);
 var inner_div = addChild(container,'div','','p10 tac','height:100px');
 var p2 = addChild(inner_div,'p','','','margin-top:37px');
 if (type=='error'||type=='success'||type=='warning'||type=='confirm') {
 var img2 = elementBind('img');
 img2.setAttribute('src',imgpath+ '/'+ type +'_bg.gif');
 img2.setAttribute('align','absmiddle');
 p2.appendChild(img2);
 }
 p2.innerHTML += message;
 var tar = addChild(container,'div','','pdD tar');
 if (type == 'confirm' && typeof(callback) == 'function') {
 var ok = elementBind('input','','bt');
 ok.type = 'button';
 ok.value= '确定';
 ok.onclick = function () {
 closep();
 if (typeof(callback)=='function') {
 callback();
 }
 }
 tar.appendChild(ok);
 }
 if (autohide) {
 var show = elementBind('span','','fl f12','padding:0 0 10px 10px;');
 show.innerHTML = '本窗口'+autohide+'秒后关闭';
 tar.appendChild(show);
 }
 var cansel = elementBind('input','','bt','margin:0 10px 8px 0;');
 cansel.type = 'button';
 cansel.value= '关闭';
 cansel.onclick = closep;
 tar.appendChild(cansel);
 read.setMenu(container);
 read.menupz();
 if (autohide) {
 window.setTimeout("closep()", (autohide * 1000));
 }
}
</script>

<script>
var _dp_sid=2023862694;
var _dp_p="sns";
</script>
<script src="http://bj.data.cn.chins.com/dpjs/chins.js"></script>
</body></html>

<script language="JavaScript">
var openmenu = {'td_KEYsort' : 'menu_KEYsort','td_KEYapp' : 'menu_KEYapp','td_KEYhack' : 'menu_KEYhack','td_skin' : 'menu_skin','td_userinfomore' : 'menu_userinfomore'};
read.InitMenu(function(id)
{
if(id=="menu_post")
{
//getObj("menu_post").getElementsByTagName("a")[0].style.border="2px solid red";
//alert(getObj("menu_post").getElementsByTagName("a")[0].outerHTML);
read.menu.getElementsByTagName("a")[0].focus();
return;
}
});
WINDOW_LOADED=1;
</script>

<script language="JavaScript" src="http://init.phpwind.net/init.php?sitehash=10XVZdVAoBCVcCB11SAwRRB1JXClEEVVMFBlYBA1UDAQE&v=7.5 SP1&c=0"></script><!-- w7.ybbs.cnb.chins.com compressed/chunked Sat May 28 15:38:45 UTC 2011 -->
保密

        </th>
</tr>
<tr>
        <td>生日</td>
        <th>0000-00-00<br /></th>
</tr>

<tr>
        <td>昵称</td>
        <th>anitasyk<br /></th>
</tr>

<tr>
        <td>勋章</td>
        <th>

        该用户还没有获得勋章

        </th>
</tr>

<tr>
        <td>Email</td>
        <th><img src="images/email.gif"
 楼主| 发表于 2011-5-28 23:19:09 | 显示全部楼层
用这个 已经很接近了,继续努力

\w*\b.*
 楼主| 发表于 2011-5-28 23:27:17 | 显示全部楼层
\w\b.*<[^>]*>

在接近一步
 楼主| 发表于 2011-5-29 00:04:43 | 显示全部楼层
我用代码  _StringBetween   可以达到理想的效果了,

但是还是想看看有没有高手写个  正则出来
 楼主| 发表于 2011-5-29 00:15:25 | 显示全部楼层
版主给的代码,我贴上来,大家分享!
#include <array.au3>
$str = FileRead('text.txt')
$str = StringRegExpReplace($str, '\s', '')
$sReg = StringRegExp($str,'昵称.{9}(\w+)<br/>', 3)
_ArrayDisplay($sReg)
发表于 2011-5-29 00:31:04 | 显示全部楼层
$sReg = StringRegExp($str,'<th>\w+<br />', 3)
发表于 2011-5-29 03:44:46 | 显示全部楼层
StringRegExpReplace($str, '(?s)(.*?昵称</td>.*?<th>)([^<]+)(.*)', '\2')
发表于 2011-6-2 22:18:38 | 显示全部楼层
(?<=<th>)\w+(?=<br /></th>)

环视..
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-27 13:33 , Processed in 0.081814 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表