﻿

function closenews()
{
searchspe.style.visibility='hidden';
searchspe2.style.visibility='hidden';
}
//下面这行不可打回车断行随意排版(注意保持双引号中字符串的连续性)

lastScrollX=0;
function heartBeat0()
{
diffY=document.documentElement.scrollTop;
percent=.1*(diffY-lastScrollX);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.searchspe.style.pixelTop+=percent;
lastScrollX=lastScrollX+percent;
}
window.setInterval("heartBeat0()",1);
//下面这行不可打回车断行随意排版(注意保持双引号中字符串的连续性)

lastScrollY=0;
function heartBeat1()
{
diffY=document.documentElement.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.searchspe2.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat1()",1);



