////////////////////////////
//////新闻网内容页JS集合//////
///////////////////////////

//复制新闻标题
function copyToClipBoard(){
var clipBoardContent="";
clipBoardContent+=this.location.href; clipBoardContent+="#";
clipBoardContent+=document.title;
window.clipboardData.setData("Text",clipBoardContent);
alert("新闻标题与地址已经复制成功");
}

// 双击自动滚动
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.documentElement.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.documentElement.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize


//更改字体大小
var status0='';
var curfontsize=10;
var curlineheight=18;
function fontZoomA(){
  if(curfontsize>8){
    document.getElementById('fontzoom').style.fontSize=(--curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(--curlineheight)+'pt';
  }
}
function fontZoomB(){
  if(curfontsize<64){
    document.getElementById('fontzoom').style.fontSize=(++curfontsize)+'pt';
	document.getElementById('fontzoom').style.lineHeight=(++curlineheight)+'pt';
  }
}