﻿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("rightDiv").style.top = parseInt(document.getElementById("rightDiv").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
//下面这段删除后，将不跟随屏幕而移动。
window.setInterval("heartBeat()",1);
//-->
//关闭按钮
function close_right1(){
    right1.style.display='none';
}
//以下为主要内容
document.writeln("<div id=\"rightDiv\" style=\"top:200px;right:5px\">");
//------右侧各块开始
//---R1
document.writeln("<div id=\"right1\" class=\"itemFloat\">");
document.writeln("<br><a class=\"piaofu\" href=\"javascript:close_right1();\" title=\"关闭在线客服（刷新页面可再次打开）\"><\/a>");
document.writeln("<ul id=\"online\" class=\"content\">");
document.writeln("<li><a class=\"qq\" href=\"http:\/\/sighttp.qq.com\/cgi-bin\/check?sigkey=6ceaff5caa3618be0506e25368727e0798dce447c3921c1182920f6b5d2317bf\"; target=_blank; onclick=\"var tempSrc=\'http:\/\/sighttp.qq.com\/wpa.js?rantime=\'+Math.random()+\'&sigkey=6ceaff5caa3618be0506e25368727e0798dce447c3921c1182920f6b5d2317bf\';var oldscript=document.getElementById(\'testJs\');var newscript=document.createElement(\'script\');newscript.setAttribute(\'type\',\'text\/javascript\'); newscript.setAttribute(\'id\', \'testJs\');newscript.setAttribute(\'src\',tempSrc);if(oldscript == null){document.body.appendChild(newscript);}else{oldscript.parentNode.replaceChild(newscript, oldscript);}return false;\"><img border=\"0\" SRC=\'http:\/\/wpa.qq.com\/pa?p=1:507677771:4\' alt=\"点击与其在线沟通\"> QQ在线客服<\/a><\/li>");
document.writeln("<li class=\"msn\"><a href=\"#\" target=\"_blank\"> <\/a><\/li>");
document.writeln("<\/ul>");
document.writeln("<\/div>");
document.writeln("<\/div>");
document.writeln("<link href=\"style/\qq.css\" rel=\"stylesheet\" type=\"text\/css\" \/>");


