var tipsA; 
var tipsB; 
var theTop = 50/*这是默认高度*/; 
var old = theTop;
function initFloatTips() {
  tipsA = document.getElementById('floatTipsA');
  tipsB = document.getElementById('floatTipsB');
  moveTips();
};
function moveTips() {
  var tt=50;
  if (window.innerHeight) {
    pos = window.pageYOffset
  }
  else if (document.documentElement && document.documentElement.scrollTop) {
    pos = document.documentElement.scrollTop
  }
  else if (document.body) {
    pos = document.body.scrollTop;
  }
  pos=pos-tipsA.offsetTop+theTop;
  pos=tipsA.offsetTop+pos/10;
  if (pos < theTop) pos = theTop;
  if (pos != old) {
    tipsA.style.top = pos+"px";
	tipsB.style.top = pos+"px";
    tt=10;
  }
  old = pos;
  setTimeout(moveTips,tt);
}