var currentpos,timer; function initialize() { timer=setInterval("scrollwindow()",10); } function sc(){ clearInterval(timer); } function scrollwindow() { currentpos=document.body.scrollTop; window.scroll(0,++currentpos); if (currentpos != document.body.scrollTop) sc(); } document.onmousedown=sc document.ondblclick=initialize function doZoom(size){ document.getElementById('zoom').style.fontSize=size+'px' } function doPrint(){ var str="<asp>"; var article; var css; var strAdBegin="<--NEWSZW_HZH_BEGIN-->"; var strAdEnd="<--NEWSZW_HZH_END-->"; var strFontSize='【大 中 小】' var strdoPrint="doPrint()"; var strTmp; css=""; str += css; str += ''; str += ''+document.title+''; str += ""; str += ""; str += "| "; article=document.getElementById('article').innerHTML; if(article.indexOf(strAdBegin)!=-1){ str +=article.substr(0,article.indexOf(strAdBegin)); strTmp=article.substr(article.indexOf(strAdEnd)+strAdEnd.length, article.length); }else{ strTmp=article } str +=strTmp.substr(0,strTmp.indexOf(strFontSize)); strTmp=strTmp.substr(strTmp.indexOf(strFontSize)+strFontSize.length, strTmp.length); str +=strTmp.substr(0,strTmp.indexOf(strdoPrint)); str +="window.print()"; str +=strTmp.substr(strTmp.indexOf(strdoPrint)+strdoPrint.length, strTmp.length); //str +=document.getElementById('links').innerHTML; str += " | "; str += " | |