﻿// JScript 文件
    var qq = "<div id='qqdv' style='position:absolute;top:50px;left:10px;height:554px;width:118px; background:url(scroll.gif); background-repeater:no-repeater;'>";    
    qq += "</div>";
    qq+="<div id='qqda' style='position:absolute;top:50px;right:10px;height:554px;width:118px; background:url(scroll.gif); background-repeater:no-repeater;'>";
    qq += "</div>";
    document.body.innerHTML+=qq;

    var s;
    var d;
    window.onscroll = function () {

        s = document.documentElement.scrollTop;
        
        var t = window.setInterval(function () {
            d = document.getElementById("qqdv").style.top;
            d = d.toString().substr(0, d.toString().indexOf('p'));
            if ((d - 50) != s) {
                if ((d - 50) > s) { d -= 1; document.getElementById("qqdv").style.top = d + "px"; document.getElementById("qqda").style.top = d + "px";}
                else { d -= (-1); document.getElementById("qqdv").style.top = d + "px"; document.getElementById("qqda").style.top = d + "px";}
            }
            else {
                window.clearInterval(t);
            }
        }, 10);
    }

    var qqdv=document.getElementById("qqdv");
    qqdv.onclick=function(){
        qqdv.style.display="none";
    }
    var qqda=document.getElementById("qqda");
    qqda.onclick=function(){
        qqda.style.display="none";
    }
