var pagerefresh=15000; var isdesc=false; //按倒序獲取信息 function desc() { myRequest(document.getElementById("ulmessage"),"data/descmessage.js?fresh"+new Date().getTime()); var mdesc = document.getElementById("messagedesc"); var masc = document.getElementById("messageasc") if (mdesc!=null) mdesc.className="btnnow"; if (masc!=null) masc.className="btnwill"; isdesc=true; } //按正序獲取信息 function asc() { myRequest(document.getElementById("ulmessage"),"data/message.js?fresh"+new Date().getTime()); var mdesc = document.getElementById("messagedesc"); var masc = document.getElementById("messageasc"); if (mdesc!=null) mdesc.className="btnwill"; if (masc!=null) masc.className="btnnow"; isdesc=false; } //刷新信息區 function refreshmessage() { if(isdesc) { myRequest(document.getElementById("ulmessage"),"data/descmessage.js?fresh"+new Date().getTime()); } else { myRequest(document.getElementById("ulmessage"),"data/message.js?fresh"+new Date().getTime()); } setTimeout(function(){refreshmessage();},pagerefresh); } //刷新圖片區 function refreshpicture() { myRequest(document.getElementById("ulpicture"),"data/picture.js?fresh"+new Date().getTime()); setTimeout(function(){refreshpicture();},20000); } //刷新背景資料區 function refreshrelationinfo() { myRequest(document.getElementById("ulrelationinfo"),"data/relationinfo.js?fresh"+new Date().getTime()); setTimeout(function(){refreshrelationinfo();},21000); } //刷新摘要區 function refreshabstract() { myRequest(document.getElementById("ulabstract"),"data/abstract.js?fresh"+new Date().getTime()); setTimeout(function(){refreshabstract();},22000); } //刷新提問區 function refreshquestion() { myRequest(document.getElementById("ulquestion"),"data/question.js?fresh"+new Date().getTime()); setTimeout(function(){refreshquestion();},23000); } //初始化頁面 function initpage() { //發言控制 var speaktag = ""; if (speakcontrol==1) { speaktag = "意見征集"; } else if (speakcontrol==2) { speaktag = "提 問"; } var ntop = document.getElementById("now_top"); var nbottom = document.getElementById("now_bottom"); if (ntop!=null) ntop.innerText = speaktag; if (nbottom!=null) nbottom.innerText = speaktag; //刷新控制 refreshtime=parseInt(refreshtime); pagerefresh=parseInt(pagerefresh); var tempselect=document.getElementById("chktime"); if (tempselect!=null) { for(var i=0;i