﻿

function createJs()
{
	var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=5c383d273741c083b1862b4de4b04e47a98e24d5b9d8734ffda12512f1097cff';
	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;


}

//<![CDATA[

var tips; var theTop = 40; var old = theTop;

function initFloatTips() {

    tips = document.getElementById('qq');

    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 - tips.offsetTop + theTop;

    pos = tips.offsetTop + pos / 10;



    if (pos < theTop) pos = theTop;

    if (pos != old) {

        tips.style.top = pos + "px";

        tt = 10;

        //alert(tips.style.top);

    }



    old = pos;

    setTimeout(moveTips, tt);

}

//!]]>

initFloatTips();



