﻿document.write("<style>*{margin:0;padding:0} .QQbox{ z-index:99; width: 142px; right: 0px; top: 145px; position: absolute; font-size:12px} .QQbox .press{ right: 0; border: none; cursor: pointer;width: 22px; height: 158px;position: absolute;} .QQbox .Qlist{ right: 0; width: 142px; background: url(http://www.dadoo.cn/tuan/QQonline/bg.gif) padding:5px;} .QQbox .Qlist .b{ float: right; height: 6px; width: 142px; font-size: 1px; } .QQbox .Qlist .infobox{ text-align:center; background-image:url(http://www.dadoo.cn/tuan/QQonline/infobox.gif); background-repeat:no-repeat; padding:5px; line-height:14px; color:#000; font-weight:700;} .QQbox .Qlist .t{ background:url(http://www.dadoo.cn/tuan/QQonline/title.gif); height:30px;} .QQbox .Qlist .b{ background:url(http://www.dadoo.cn/tuan/QQonline/bottom.gif); height:9px; overflow:hidden; } .QQbox .Qlist .con{background: url(http://www.dadoo.cn/tuan/QQonline/bg.gif); width: 100%; padding: 2px 0px 10px 0px;} .QQbox .Qlist .con h2{ height: 22px; font: bold 12px/22px '宋体'; background: url(http://www.dadoo.cn/tuan/QQonline/bg.gif) repeat-y -135px 0; border: 1px solid #3a708d; text-align: center; color:#fff;} .QQbox .Qlist .con ul li{color: #000000; text-decoration: none;padding: 5px 5px 0px 15px;} .QQbox .Qlist .con ul li a{color: #000000; text-decoration: none;} .QQbox .Qlist .con ul li a:hover{color: #FF0000; text-decoration: none;}</style>");
document.write("<div class='QQbox' id='divQQbox' >");
document.write("<div class='Qlist' id='divOnline' onmouseout='hideMsgBox(event);' style='display : none;'>");
document.write("<div class='t'></div>");
document.write("<div class='infobox'>我们营业的时间<br>9:00-19:00</div>");
document.write("<div class='con'>");
document.write("<ul>");

document.write("<li class=odd><a href='tencent://message/?uin=786380037'><img src='http://wpa.qq.com/pa?p=1:786380037:4' border='0' /> 客服[妮妮]</a></li>");
document.write("<li class=odd><a href='tencent://message/?uin=859565171'><img src='http://wpa.qq.com/pa?p=1:859565171:4' border='0' /> 客服[莎莎]</a></li>");
document.write("<li class=odd><a href='tencent://message/?uin=859370297'><img src='http://wpa.qq.com/pa?p=1:859370297:4' border='0' /> 客服[丽丽]</a></li>");
document.write("<li class=odd><a href='tencent://message/?uin=860812820'><img src='http://wpa.qq.com/pa?p=1:860812820:4' border='0' /> 客服[珊珊]</a></li>");
document.write('<li><img src="http://www.dadoo.cn/tuan/qqonline/msn.gif" width="16" height="16" border="0" /> <a href="msnim:chat?contact=mail@dadoo.cn"> 客服[大都]</a></li>');
document.write('<li><a href="http://amos1.taobao.com/msg.ww?v=2&uid=%E5%A6%82%E9%A3%8E%E7%9A%84%E7%87%95%E5%84%BF&s=2" target="_blank"><img src="http://amos1.taobao.com/online.ww?v=2&uid=%E5%A6%82%E9%A3%8E%E7%9A%84%E7%87%95%E5%84%BF&s=2" width="16" height="16" border="0" /> 旺旺[燕儿]</a></li>');
document.write('<li><img src="http://www.dadoo.cn/tuan/qqonline/tel.gif" width="20" height="20" border="0" /> 0592-8260808</li>');
document.write("<li>地址:<a href='http://www.dadoo.cn/article.php?id=4'>点击>>查看地图</a></li>");
document.write("</ul>");
document.write("</div>");
document.write("<div class='b'></div>");
document.write("</div>");
document.write("<div id='divMenu' onmouseover='OnlineOver();'><img src='http://www.dadoo.cn/tuan/qqonline/qqonline.gif' class='press' alt='在线咨询'></div>");
document.write("</div>");
//<![CDATA[
var tips; var theTop = 75/*这是默认高度,越大越往下*/; var old = theTop;
function initFloatTips() {
tips = document.getElementById('divQQbox');
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();
function OnlineOver(){
document.getElementById("divMenu").style.display = "none";
document.getElementById("divOnline").style.display = "block";
document.getElementById("divQQbox").style.width = "142px";
}
function OnlineOut(){
document.getElementById("divMenu").style.display = "block";
document.getElementById("divOnline").style.display = "none";
}
if(typeof(HTMLElement)!="undefined")    //给firefox定义contains()方法，ie下不起作用
{   
      HTMLElement.prototype.contains=function(obj)   
      {   
          while(obj!=null&&typeof(obj.tagName)!="undefind"){ //通过循环对比来判断是不是obj的父元素
   　　　　if(obj==this) return true;   
   　　　　obj=obj.parentNode;
   　　}   
          return false;   
      };   
}  
function hideMsgBox(theEvent){ //theEvent用来传入事件，Firefox的方式
　 if (theEvent){
　 var browser=navigator.userAgent; //取得浏览器属性
　 if (browser.indexOf("Firefox")>0){ //如果是Firefox
　　 if (document.getElementById('divOnline').contains(theEvent.relatedTarget)) { //如果是子元素
　　 return; //结束函式
} 
} 
if (browser.indexOf("MSIE")>0){ //如果是IE
if (document.getElementById('divOnline').contains(event.toElement)) { //如果是子元素
return; //结束函式
}
}
}
/*要执行的操作*/
document.getElementById("divMenu").style.display = "block";
document.getElementById("divOnline").style.display = "none";
}
