﻿// JavaScript Document
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("lovexin14").style.top=parseInt(document.getElementById("lovexin14").style.top)+percent+"px";

    lastScrollY = lastScrollY + percent;
    //alert(lastScrollY);
}

suspendcode14 = "<DIV id=\"lovexin14\" style='right:80px;POSITION:absolute;TOP:120px;'><img border=0 src='/adv/c/zb.gif' style='width:120px;height:120px;'><br><a href=JavaScript:; onclick=\"lovexin14.style.display = 'none'\">关闭</a></div>"


document.write(suspendcode14); 
window.setInterval("heartBeat()", 1);
