
var qqcon="<a href=\"http://sighttp.qq.com/cgi-bin/check?sigkey=ecf60ffcd795f348a62469fe85bdaeab5369ae797f4f04cb676e7a312c03317d\"; target=_blank; onclick=\"var tempSrc='http://sighttp.qq.com/wpa.js?rantime='+Math.random()+'&sigkey=ecf60ffcd795f348a62469fe85bdaeab5369ae797f4f04cb676e7a312c03317d';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:940845658:1' alt=\"中国人寿厦门营销服务部(收展部)\"><font size='4'><b><br>在线咨询<br>招聘企业<br></b></font></a>";
var qqitem=document.getElementById("qqitem");
qqitem.style.width="80px";
qqitem.style.height="80px";
qqitem.style.position="absolute";
qqitem.style.display="none";
qqitem.style.background="url(http://www.021so.com/gimages/imqqbg.gif)";
qqitem.style.padding="15px 0 0 0";
qqitem.innerHTML=qqcon;
qqitem.style.display="block";

var xPos = 20; 
var yPos = 10; 
qqitem.style.left= xPos; 
qqitem.style.top = yPos; 
var step = 1; 
var delay = 30; 
var width,height,Hoffset,Woffset; 
var y = 1; 
var x = 1; 
var interval; 
qqitem.visibility = "visible"; 
function changePos() 
{ 
width = document.body.clientWidth; 
height = document.body.clientHeight; 
Hoffset = qqitem.offsetHeight; 
Woffset = qqitem.offsetWidth; 
if (y) 
{ 
yPos = yPos + step; 
} 
else 
{ 
yPos = yPos - step; 
} 
if (yPos < 0) 
{ 
y = 1; 
yPos = 0; 
} 
if (yPos >= (height - Hoffset)) 
{ 
y = 0; 
yPos = (height - Hoffset); 
} 
if (x) 
{ 
xPos = xPos + step; 
} 
else 
{ 
xPos = xPos - step; 
} 
if (xPos < 0) 
{ 
x = 1; 
xPos = 0; 
} 
if (xPos >= (width - Woffset)) 
{ 
x = 0; 
xPos = (width - Woffset); 
} 
qqitem.style.left = xPos + document.body.scrollLeft; 
qqitem.style.top = yPos + document.body.scrollTop; 
} 
function start() 
{ 
interval = setInterval('changePos()', delay); 
} 
function pause_resume() 
{ 
clearInterval(interval); 
} 
start(); 
