var addcode_f=false;function addcode(){if(!addcode_f){if (chkdiv('ob_code')) {document.getElementById('ob_code').innerHTML='验证码: 如果看不清数字或字母?请点一下换一个! ';}}addcode_f=true;} var ShowDigg ; function diggit(logid){ var Ajax = new oAjax("/oblog/ajaxServer.asp?action=digglog&fromurl=",show_returnsave); var arrKey = new Array("logid",""); var arrValue = new Array(logid,""); Ajax.Post(arrKey,arrValue); } function show_returnsave(arrobj){ if (arrobj){ if (arrobj.length == 4) { ShowDigg ='\n
\n
$diggnum$
\n
$showmsg$
\n
\n'; ShowDigg = ShowDigg.replace('$diggnum$',arrobj[3]) ShowDigg = ShowDigg.replace('$logid$',arrobj[2]) ShowDigg = ShowDigg.replace('$showmsg$',arrobj[0]) document.getElementById("ob_logd"+arrobj[2]).innerHTML = ShowDigg; return false; } switch (arrobj[1]){ case '1': var oDialog = new dialog("/oblog/"); oDialog.init(); oDialog.set('src',arrobj[1]); oDialog.event(arrobj[0],''); oDialog.button('dialogOk',""); break; case '2': var oDialog = new dialog("/oblog/"); oDialog.init(); oDialog.set('src',arrobj[1]); oDialog.event(arrobj[0],''); oDialog.button('dialogOk',""); break; } } }