|
<div id=\"livethread\" class=\"tl bm bmw cl\" style=\"padding:10px 15px;\"><div class=\"livethreadtitle vm\"><span class=\"replynumber xg1\">åå¤ <span id=\"livereplies\" class=\"xi1\">0</span></span><a href=\"forum.php?mod=viewthread&tid=33763098\" target=\"_blank\">天ä¸ç¬¬ä¸å¸®å³èµYYç´æ讨论å¸</a> <img src=\"static/image/common/livethreadtitle.png\" /></div><div class=\"livethreadcon\">å¦é¢ï¼è¯·å¤§å®¶ææåè¨ï¼è¸è·åè¨ï¼åè¨æéæºå¨æå¥å±ï¼è¯·åä½å¤§ä¾ ç
æ欲è¨ï¼</div><div id=\"livereplycontentout\"><div id=\"livereplycontent\"></div></div><div id=\"liverefresh\">ææ°çåè¨äºï¼ç¹å»å·æ°</div><div id=\"livefastreply\"><form id=\"livereplypostform\" method=\"post\" action=\"forum.php?mod=post&action=reply&fid=4&tid=33763098&replysubmit=yes&infloat=yes&handlekey=livereplypost&inajax=1\" onsubmit=\"return livereplypostvalidate(this)\"><div id=\"livefastcomment\"><textarea id=\"livereplymessage\" name=\"message\" style=\"color:gray;\">#å¨è¿éå¿«éåå¤#</textarea></div><div id=\"livepostsubmit\" style=\"display:none;\"><p class=\"ptm pnpost\" style=\"margin-bottom:10px;\"><button type=\"submit\" name=\"replysubmit\" class=\"pn pnc vm\" style=\"float:right;\" value=\"replysubmit\" id=\"livereplysubmit\"><strong>å表</strong></button></p></div><input type=\"hidden\" name=\"formhash\" value=\"07855fbb\"><input type=\"hidden\" name=\"subject\" value=\" \"><script type=\"text/javascript\">document.getElementsByName(\"formhash\")[1].value=document.getElementsByName(\"formhash\")[0].value;</script></form></div><span id=\"livereplypostreturn\"></span></div><script type=\"text/javascript\">var postminchars = parseInt(\'10\');var postmaxchars = parseInt(\'10000\');var disablepostctrl = parseInt(\'1\');var replycontentlist = new Array();var addreplylist = new Array();var timeoutid = timeid = movescrollid = waitescrollid = null;var replycontentnum = 0;getnewlivepostlist(1);timeid = setInterval(getnewlivepostlist, 5000);$(\'livereplycontent\').style.position = \'absolute\';$(\'livereplycontent\').style.width = ($(\'livereplycontentout\').clientWidth - 50) + \'px\';$(\'livereplymessage\').onfocus = function() {if(this.style.color == \'gray\') {this.value = \'\';this.style.color = \'black\';$(\'livepostsubmit\').style.display = \'block\';this.style.height = \'56px\';$(\'livefastcomment\').style.height = \'37px\';}};$(\'livereplymessage\').onblur = function() {if(this.value == \'\') {this.style.color = \'gray\';this.value = \'#å¨è¿éå¿«éåå¤#\';}};$(\'liverefresh\').onclick = function() {$(\'livereplycontent\').style.position = \'absolute\';getnewlivepostlist();this.style.display = \'none\';};$(\'livereplycontentout\').onmouseover = function(e) {if($(\'livereplycontent\').style.position == \'absolute\' && $(\'livereplycontent\').clientHeight > 215) {$(\'livereplycontent\').style.position = \'static\';this.scrollTop = this.scrollHeight;}if(this.scrollTop + this.clientHeight != this.scrollHeight) {clearInterval(timeid);clearTimeout(timeoutid);clearInterval(movescrollid);timeid = timeoutid = movescrollid = null;if(waitescrollid == null) {waitescrollid = setTimeout(function() {$(\'liverefresh\').style.display = \'block\';}, 60000 * 10);}} else {clearTimeout(waitescrollid);waitescrollid = null;}};$(\'livereplycontentout\').onmouseout = function(e) {if(this.scrollTop + this.clientHeight == this.scrollHeight) {$(\'livereplycontent\').style.position = \'absolute\';clearInterval(timeid);timeid = setInterval(getnewlivepostlist, 10000);}};function getnewlivepostlist(first) {var x = new Ajax(\'JSON\');x.getJSON(\'forum.php?mod=misc&action=livelastpost&fid=4\', function(s, x) {var count = s.data.count;$(\'livereplies\').innerHTML = count;var newpostlist = s.data.list;for(i in newpostlist) {var postid = i;var postcontent = \'\';postcontent += newpostlist.authorid ? \'<dt><a href=\"home.php?mod=space&uid=\' + newpostlist.authorid + \'\" target=\"_blank\">\' + newpostlist.avatar + \'</a></dt>\' : \'<dt></dt>\';postcontent += newpostlist.authorid ? \'<dd><a href=\"home.php?mod=space&uid=\' + newpostlist.authorid + \'\" target=\"_blank\">\' + newpostlist.author + \'</a></dd>\' : \'<dd>\' + newpostlist.author + \'</dd>\';postcontent += \'<dd>\' + newpostlist.message + \'</dd>\';postcontent += \'<dd class=\"dateline\">\' + newpostlist.dateline + \'</dd>\';if(replycontentlist[postid]) {$(\'livereply_\' + postid).innerHTML = postcontent;continue;}addreplylist[postid] = \'<dl id=\"livereply_\' + postid + \'\">\' + postcontent + \'</dl>\';}if(first) {for(i in addreplylist) {replycontentlist = addreplylist;replycontentnum++;var div = document.createElement(\'div\');div.innerHTML = addreplylist;$(\'livereplycontent\').appendChild(div);delete addreplylist;}} else {livecontentfacemove();}});}function livecontentfacemove() {//note ä»éåä¸ååºæ°æ®var reply = \'\';for(i in addreplylist) {reply = replycontentlist = addreplylist;replycontentnum++;delete addreplylist;break;}if(reply) {var div = document.createElement(\'div\');div.innerHTML = reply;var oldclientHeight = $(\'livereplycontent\').clientHeight;$(\'livereplycontent\').appendChild(div);$(\'livereplycontentout\').style.overflowY = \'hidden\';$(\'livereplycontent\').style.bottom = oldclientHeight - $(\'livereplycontent\').clientHeight + \'px\';if(replycontentnum > 20) {$(\'livereplycontent\').removeChild($(\'livereplycontent\').firstChild);for(i in replycontentlist) {delete replycontentlist;break;}replycontentnum--;}if(!movescrollid) {movescrollid = setInterval(function() {if(parseInt($(\'livereplycontent\').style.bottom) < 0) {$(\'livereplycontent\').style.bottom =((parseInt($(\'livereplycontent\').style.bottom) + 5) > 0 ? 0 : (parseInt($(\'livereplycontent\').style.bottom) + 5)) + \'px\';} else {$(\'livereplycontentout\').style.overflowY = \'auto\';clearInterval(movescrollid);movescrollid = null;timeoutid = setTimeout(livecontentfacemove, 1000);}}, 100);}}}function livereplypostvalidate(theform) {var s;if(theform.message.value == \'\' || $(\'livereplymessage\').style.color == \'gray\') {s = \'æ±æï¼æ¨å°æªè¾å
¥å
容\';}if(!disablepostctrl && ((postminchars != 0 && mb_strlen(theform.message.value) < postminchars) || (postmaxchars != 0 && mb_strlen(theform.message.value) > postmaxchars))) {s = \'æ¨çå¸åé¿åº¦ä¸ç¬¦åè¦æ±ã\\n\\nå½åé¿åº¦: \' + mb_strlen(theform.message.value) + \' åè\\nç³»ç»éå¶: \' + postminchars + \' å° \' + postmaxchars + \' åè\';}if(s) {showError(s);doane();$(\'livereplysubmit\').disabled = false;return false;}$(\'livereplysubmit\').disabled = true;theform.message.value = theform.message.value.replace(/([^>=\\]\"\'\\/]|^)((((https?|ftp):\\/\\/)|www\\.)([\\w\\-]+\\.)*[\\w\\-\\u4e00-\\u9fa5]+\\.([\\.a-zA-Z0-9]+|\\u4E2D\\u56FD|\\u7F51\\u7EDC|\\u516C\\u53F8)((\\?|\\/|+[\\w\\.\\/=\\?%\\-&~`@\':+!]*)+\\.(jpg|gif|png|bmp))/ig, \'$1\');theform.message.value = parseurl(theform.message.value);ajaxpost(\'livereplypostform\', \'livereplypostreturn\', \'livereplypostreturn\', \'onerror\', $(\'livereplysubmit\'));return false;}function succeedhandle_livereplypost(url, msg, param) {$(\'livereplymessage\').value = \'\';$(\'livereplycontent\').style.position = \'absolute\';if(param[\'sechash\']) {updatesecqaa(param[\'sechash\']);updateseccode(param[\'sechash\']);}getnewlivepostlist();}</script> |
|