lastscrolly=0;
function heartbeat(){
var diffy;
if (document.documentelement && document.documentelement.scrolltop)
diffy = document.documentelement.scrolltop;
else if (document.body)
diffy = document.body.scrolltop
else
{/*netscape stuff*/}
//alert(diffy);
percent=.1*(diffy-lastscrolly);
if(percent>0)percent=math.ceil(percent);
else percent=math.floor(percent);
document.getelementbyid("lovexin12").style.top=parseint(document.getelementbyid("lovexin12").style.top)+percent+"px";
lastscrolly=lastscrolly+percent;
//alert(lastscrolly);
}
suspendcode12="
");
window.setinterval("heartbeat()",1);
function far_close()
{
document.getelementbyid("lovexin12").innerhtml="";
}
function setfrme()
{
var tr=document.getelementbyid("lovexin12");
var twidth=tr.clientwidth;
var theight=tr.clientheight;
var fr=document.getelementbyid("frame55la");
fr.width=twidth-1;
fr.height=theight-30;
}
//setfrme()
function toolbar(el) {
el = typeof el == 'string' ? document.getelementbyid(el) : el;
var eltop = el.offsettop;
var stop = 0;
window.onscroll = function () {
stop = document.body.scrolltop || document.documentelement.scrolltop;
if (stop > eltop) {
el.style.top = "0";
el.style.position = "fixed"
} else {
el.style.top = eltop + 'px';
el.style.position = "absolute"
}
}
}
toolbar('topbg');