<!--STATUS OK-->
<html><head><meta http-equiv=content-type content="text/html; charset=gb2312"><title>用状态表完美解决九宫格游戏问题 JOJ:1411_仰望者 </title>
<style>.error{color:#FF0000;font-size:12px}</style>
<script type="text/javascript" src="/ui/scripts/global.js"></script>
<script language="javascript" src="/js/popup.js"></script>
<script LANGUAGE="JavaScript" src="/js/g_spjs.js"></script>
<script language="javascript">
<!--
var allkey="";
var i=0;
var flag=0;
function setpv(allnum)
{
var num = allnum.split('_');
document.getElementById("result").innerHTML=num[0];
}
function checkMail(s)
{
var pattern=/\w+@\w+\.[a-z]+/;
if(pattern.test(s))
{
return true;
}
else
{
return false;
}
}
function checkeandu(eanduid)
{
var eanduvalue=G(eanduid).value;
var len=bytes(eanduvalue);
if(len>128)
{
showErr(2,"您输入的网址或邮箱太长,请保持在128字节以内。");
return false;
}
else
{
return true;
}
}
function cmtdel(str)
{
var pop=new Popup({ contentType:3,isReloadOnClose:false,width:340,height:80});
pop.setContent("title","删除评论");
pop.setContent("confirmCon","您确定要彻底删除这条评论吗?");
pop.setContent("callBack",delCallback2);
pop.setContent("parameter",{fid:str,popup:pop});
pop.build();
pop.show();
return false;
}
function delCallback2(para)
{
var o_pop=para["popup"];
o_pop.config.contentType=1;
o_pop.setContent("contentUrl","");
o_pop.reBuild();
G(para["fid"]).target=o_pop.iframeIdName;
eval("document."+para["fid"]).submit();
}
function checkname(strid)
{
var ele=document.getElementById(strid);
var len=bytes(ele.value);
if(len>49)
{
showErr(1,"您输入的姓名太长,请保持在49字节以内。");
return false;
}
else
{
if(len==0)
{
document.getElementById(strid).value="匿名网友";
}
return true;
}
}
function checktext(textid)
{
document.getElementById(textid).value=trimlr(textid);
var str=trimrn(textid);
len=str.length;
if(len==0 || ((/^[\s, ]+$/gi).test(str)) )
{
showErr(3,"您必须输入评论内容,请检查。");
return false;
}
else
{
if(len>1000)
{
showErr(3,"您输入的评论内容太长,请保持在500字以内。");
return false;
}
return true;
}
}
function showErr(index,str)
{
G(index+"_err").style.display="";
G(index+"_err_con").innerHTML=str;
}
function hidErr(index)
{
G(index+"_err").style.display="none";
G(index+"_err_con").innerHTML="";
}
function alertPop(tit,con)
{
var pop=new Popup({ contentType:4,isReloadOnClose:false,width:340,height:80});
pop.setContent("title",tit);
pop.setContent("alertCon",con);
pop.build();
pop.show();
}
function cmtfull()
{
var cnum=7;
if(cnum>=50000)
{
alertPop("发表评论","单篇日志评论数最多为50000条.");
return false;
}
else
{
return true;
}
}
function checkcmtform()
{
if(checkname("spBlogCmtor")&&checkeandu("spBlogCmtURL")&&checktext("spBlogCmtText")&&cmtfull())
{
submitForm();
return true;
}
else
{
return false;
}
}
var g_pop=null;
function submitForm()
{
g_pop=new Popup({ contentType:1,isReloadOnClose:false,width:340,height:80});
g_pop.setContent("title","添加评论");
g_pop.setContent("contentUrl","");
g_pop.setContent("someDisabledBtn","btn_ok");
g_pop.build();
G("popFormSubmit").target=g_pop.iframeIdName;
g_pop.show();
}
function g_close_pop()
{
g_pop.close();
}
function formatonlinpic()
{
var picobj=document.getElementsByName("onlinepic");
var picnum=picobj.length;
for(var i=0;i<picnum;i++)
{
if(picobj[i].width>200)
{
picobj[i].width=200;
}
if(picobj[i].height>200)
{
picobj[i].height=200;
}
}
try{document.getElementById("btn_ok").disabled = "";}catch(e){}
}
function addToFavor(){
var blogTitle='用状态表完美解决九宫格游戏问题 JOJ:1411'.replace(/'/g,'\'');
window.open('http://cang.baidu.com/do/add?it='+encodeURIComponent(blogTitle+'_百度空间')+'&iu='+encodeURIComponent(location.href)+'&fr=sp#nw=1','_s','scrollbars=no,width=600,height=450,right=75,top=20,status=no,resizable=yes');
return false;
}
var isIE = /*@cc_on!@*/false;
function tracker(did,a){
return function(){
var t=new Date().getTime();
var href=a.href;
if(isIE){
var r = /href\s*=\s*("|')?([^\s]*)\1/gi;
if(r.test(a.outerHTML))
href = RegExp.$2;
}
new Image().src = "http://hi.baidu.com/sys/statlog/1.gif?m=" + did + "&v=" + encodeURIComponent(href) + "&c=" + encodeURIComponent(location.href) + "&t="+t;
}
}
function tracker_init(did){
var _s=document.getElementById(did);
var as = _s.getElementsByTagName('A');
for(var i = 0, j = as.length; i < j; i ++){
var a = as[i];
if(isIE){
a.attachEvent("onclick", tracker(did,a));
}else{
a.addEventListener("click", tracker(did,a), false);
}
}
}
//-->
</script>
<script type="text/javascript">
/*<![CDATA[*/
var RelatedDocData = null, GetAndEval = false;
(function(){
var xhr = BdAjax.getXHR();
if(xhr == null){
RelatedDocData = -1;
return;
}
xhr.open("GET", "/sys/search?type=8&word=%D3%C3%D7%B4%CC%AC%B1%ED%CD%EA%C3%C0%BD%E2%BE%F6%BE%C5%B9%AC%B8%F1%D3%CE%CF%B7%CE%CA%CC%E2%20JOJ%A3%BA1411&item=ed5ca03378eac8ff1a4cff97&t=" + new Date().getTime(), true);
xhr.onreadystatechange = function(){
if(xhr.readyState == 4){
if(xhr.status == 0 || xhr.status == 200){
if(GetAndEval){
eval(xhr.responseText);
}else{
RelatedDocData = xhr.responseText;
}
}
}
}
xhr.send(null);
})();
/*]]>*/
</script>
</head>
<body onLoad="formatonlinpic();">
<center>
<script type="text/javascript">
/*<![CDATA[*/
if(top.location != self.location){
top.location = self.location;
}
var myref = encodeURIComponent("http://hi.baidu.com/lauo1988/blog/item/ed5ca03378eac8ff1a4cff97%2Ehtml");
/*]]>*/
</script>
<link rel="stylesheet" type="text/css" href="/ui/css/mods.css" />
<link rel="stylesheet" type="text/css" href="/lauo1988/css/item/ccd18273f0e4dd1c8701b00a.css" />
<link rel="stylesheet" type="text/css" href="/space.css" />
<style type="text/css">
/*<![CDATA[*/
#usrbar{padding:4px 10px 3px 0;font-size:12px;height:19px;line-height:19px;color:#000000;font-family:Arial;text-align:right;background:#ffffff;filter:alpha(opacity=65);-moz-opacity:0.5;width:auto !important;width:100%;letter-spacing:normal}
#usrbar a,#usrbar a:link,#usrbar a:visited{color:#0000CC;text-decoration:underline}
#ft{clear:both;height:20px;line-height:20px;color:#666666;font-size:12px;font-family:Arial;text-align:center}
#ft a,#ft a:link,#ft a:visited{color:#7777CC;text-decoration:underline}
#usrbar,#usrbar a,#usrbar a:link,#usrbar a:visited,#ft,#ft a,#ft a:link,#ft a:visited{letter-spacing:normal}
/*]]>*/
</style>
<style type="text/css">
/*<![CDATA[*/
.lka { cursor:pointer; color:#00C; }
img.down-arrow { cursor:pointer; border:1px solid #FFFFFF; }
img.down-arrow-hover { cursor:pointer; border:1px solid #999999; background-color:#F7F7F7; }
#nav_extra { position:absolute; z-index:65535; font-size:12px; text-align:left; width:100px; }
#nav_extra a { cursor:pointer; position:static; color:#0000CC !important; text-decoration:underline !important; }
#nav_extra .top { border:1px solid #999; border-bottom-color:#FFFFFF; background-color:#FFFFFF; padding-bottom:2px; padding-left:5px; padding-right:5px; position:absolute; height:17px; z-index:65531; }
#nav_extra .body { border:1px solid #999; background-color:#FFFFFF; position:absolute; top:20px; z-index:65530; }
#nav_extra .body a { display:block; padding:3px 10px 3px 8px; }
#nav_extra .body a:hover { background-color:#e4e4e4;}
#usrbar #my_home_container { padding-bottom:2px; padding-left:5px; padding-right:5px; }
/*]]>*/
</style>
<!--[if IE]>
<style type="text/css"> #nav_extra .body {top:19px;} </style>
<![endif]-->
<script type="text/javascript">
/*<![CDATA[*/
var G_HIBAR = (function(){
var d = document, usrbar, nav_extra, is_show, top_offset = BdBrowser.isIE ? 5 : 3;
function toggle(el, l, t){
el.style.display = is_show ? 'none' : 'block';
el.style.left = l + 'px';
el.styl