function $2(ObjID){ return document.getElementById(ObjID); } function QQ(){ var Div=document.createElement('div'); Div.id='qq_online'; Div.style.position='absolute'; Div.style.right='0px'; Div.style.top='200px'; var Html=""; Html+=""; Html+='

'; Html+="
"; Html+="

Skype

"; Html+="

MSN

"; Html+="

Yahoo

"; Html+="

TradeManager

"; Html+='
'; Html+='

'; Div.innerHTML=Html; var Div2=document.createElement('div'); Div2.id='qq_small'; Div2.style.position='absolute'; Div2.style.right='0px'; Div2.style.top='200px'; Div2.onclick=function(){$2('qq_small').style.display='none';$2('qq_online').style.display='block';}; document.body.appendChild(Div); FloatDiv('qq_online',200); document.body.appendChild(Div2); FloatDiv('qq_small',200); } function FloatDiv(Obj,Ch){ var Did=$2(Obj); var DidTop=parseInt(Did.style.top); var Diff=(document.documentElement.scrollTop+document.body.scrollTop+Ch-DidTop)*.80; Did.style.top=Ch+document.documentElement.scrollTop+document.body.scrollTop-Diff+'px'; FloatID=setTimeout("FloatDiv('"+Obj+"',"+Ch+")",20); } window.onload=function(){QQ()}