﻿//改变图片大小
function resizepic(thispic)
{
if(thispic.width>650) thispic.width=650;
}
//无级缩放图片大小
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}
//双击鼠标滚动屏幕的代码
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",30);
}
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

//更改字体大小
var status0='';
var curfontsize=14;
var curlineheight=20;
function fontZoomA(){
    document.getElementById('fontzoom').style.fontSize=12+'px';
	document.getElementById('fontzoom').style.lineHeight=18+'px';
}
function fontZoomB(){
    document.getElementById('fontzoom').style.fontSize=18+'px';
	document.getElementById('fontzoom').style.lineHeight=24+'px';
}
function fontZoomC(){
    document.getElementById('fontzoom').style.fontSize=14+'px';
	document.getElementById('fontzoom').style.lineHeight=22+'px';
}
