//删除函数 function deltianyamessage(n) { var tianyamessageid; tianyamessageid = 'Layer' + n; document.getElementById(tianyamessageid).style.visibility = 'hidden'; //document.getElementById(tianyamessageid).removeNode(true); } //双击纸条扩大函数 function dbrun(m) { var strWriterIDLink = 'strWriter' + ArrayMessage[m][0]; var strReceiverLink = 'strReceiver' + ArrayMessage[m][0]; var tianyamessageid = 'Layer' + ArrayMessage[m][0]; var intLeft = document.getElementById(tianyamessageid).style.left; var intTop = document.getElementById(tianyamessageid).style.top; if(tianyamessageid) document.getElementById(tianyamessageid).style.display="none"; //intLeft = intLeft.substring(0,intLeft.length-2) - 40; //intTop = intTop.substring(0,intTop.length-2) - 40; intLeft = window.screen.width/2-200-(window.screen.width-940)/2; if(window.screen.width>1024){ intLeft =intLeft +90; } intTop = window.screen.height/2-150; var showmsg="
"; showmsg+="
"; showmsg+="

祝福内容(ID:"+ArrayMessage[m][0]+")"; //if(ArrayMessage[m][13]==username ||ArrayMessage[m][12]==username){ //showmsg+=" 删 除"; //} showmsg+="

"; showmsg+="

TO:"+ArrayMessage[m][5]+"

"; showmsg+="

"+ArrayMessage[m][2]+"

"; showmsg+="

"+ArrayMessage[m][4]+"

"; showmsg+="

"+ArrayMessage[m][3]+"

"; //if (ArrayMessage[m][10]&&ArrayMessage[m][11]) { //showmsg+="
"; //showmsg+="

如意圈圈:"+ArrayMessage[m][5]+"在"+ArrayMessage[m][10]+"回复:

"; //showmsg+="

"+ArrayMessage[m][11]+"

"; //}else{ //if(ArrayMessage[m][13]==username){ //showmsg+="
"; //showmsg+="

"+username+",这个是给您的留言,你可以对此回复:

"; //showmsg+="
"; //showmsg+="

"; //showmsg+="

"; //showmsg+="
"; //showmsg+="
"; //showmsg+="

"; //showmsg+="

"; //showmsg+="

"; //showmsg+="

"; //showmsg+="
"; //showmsg+="

"; //} //} showmsg+="
"; document.getElementById("olink").innerHTML=showmsg; try{ document.getElementById(strWriterIDLink).style.fontSize = '14px'; document.getElementById(strReceiverLink).style.fontSize = '14px'; }catch(e){} } //关闭大窗口时候显示小的 function closerun(o){ if(o) document.getElementById(o).style.display=""; deltianyamessage(999999); } //停止扩大函数 function stoprun(o) { if(o) document.getElementById(o).style.display=""; document.getElementById("olink").innerHTML=""; } var idWriter = 0; var Key = 0; for(j=ArrayMessage.length - 1;j>=0;j--){ if (auto_show_id&&auto_show_id==j){ var c=100; }else{ var c = 99-j; } var c_r=c+1; var d = ArrayMessage[j][6]; var style=new Array(); style['1']='purple'; style['2']='orange'; style['3']='pink'; style['4']='green'; if (!style[d]) style[d]='pink'; var istyle = "p_"+style[d]; var showmsg2="
"; showmsg2+="
"; showmsg2+="
"; showmsg2+="
"; showmsg2+="

TO:"+ArrayMessage[j][5]+"

"; showmsg2+="

[查看完整]

"; showmsg2+="

"+ArrayMessage[j][2]+"

"; showmsg2+="

"+ArrayMessage[j][4]+"

"; showmsg2+="

"+ArrayMessage[j][3]+"

"; showmsg2+="
"; //if (ArrayMessage[j][10]&&ArrayMessage[j][11]) { //showmsg2+="
"; //showmsg2+="
"; //showmsg2+="

TO:"+ArrayMessage[j][4]+"

"; //showmsg2+="

[查看完整]

"; //showmsg2+="

"+ArrayMessage[j][11]+"

"; //showmsg2+="

"+ArrayMessage[j][5]+"

"; //showmsg2+="

"+ArrayMessage[j][10]+"

"; //showmsg2+="
" //showmsg2+="
"; //} showmsg2+="
"; showmsg2+="
"; document.write(showmsg2); } if (auto_show_id||auto_show_id==0){ dbrun(auto_show_id); } function reback(nid){ location.href='index.aspx?action=note&orderby=dateline&i=c&nid='+nid; } function fRandom(s,e){ var iRan, iMax, iMin, iRtn; s = parseInt(s); e = parseInt(e); iRan = Math.random(); if(!isNaN(e)){ // 是否有可转换成数字的第二个参数 iMax = Math.max(s,e); iMin = Math.min(s,e); iRtn = Math.ceil(iRan * (iMax - iMin) + iMin); if (iRtn >= e) iRtn = iRtn - 1; // 如果生成的随机数>=传入最大的数时减1 return iRtn; } if(!isNaN(s)){// 是否有可转换成数字的第一个参数 iRtn = Math.ceil(iRan * s); if (iRtn >= s) iRtn = iRtn - 1; return iRtn; } return 0; }