javascript懸浮線上QQ客服代碼分享

來源:互聯網
上載者:User

效果代碼

js代碼

 代碼如下 複製代碼

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title> 懸浮線上QQ客服代碼分享</title>
<meta name="description" content=" 懸浮線上QQ客服代碼分享。" />
<meta name="keywords" content=" 懸浮線上QQ客服代碼分享" />
<style>
/* CSS Document */
*{margin:0; padding:0;}
img{border:0;}
body { margin:0 auto;background:#fff;font-family:Arial, Helvetica, sans-serif,"宋體";}
body,td,th {font-size:12px;color:#533b34; line-height:20px;}
a{ color:#533b34; text-decoration:none;}
a:hover{color:red;}
/*hover{color:#803227;}*/
.clear{ clear:both;}
ul{ list-style-type:none;}
/* 整體 */

#frame{ margin:0 auto;width:960px;}
#top{ float:left; width:960px; padding-top:6px; padding-bottom:8px;}
.log{ float:left;}
.tr{ float:right;width:360px; padding-top:6px; text-align:right;}
#sform{ float:right; width:200px;height:26px;}
#stext{ float:left; width:170px; height:22px; line-height:22px;background:0; border:#dfdfdf solid 1px;}
#sbut{ float:right; width:24px; background:url(../images/1_02.jpg); height:24px; border:0;}
.tel{ float:left; width:360px; padding-top:8px; font-size:14px;}
.tel img{float:left; padding-right:8px; padding-top:3px; padding-left:2px;}

#nav{ float:left; width:960px;background:url(../images/1_04.jpg);}
#nav li{ float:left;background:url(../images/1_06.jpg) no-repeat top right; padding-right:2px;line-height:36px;}
#nav li a{ display:block; padding-left:23px; padding-right:23px; background:url(../images/1_04.jpg); line-height:36px; color:#fff;}
#nav li a:hover{background:url(../images/1_05.jpg); color:#fff;}
#nav li a.hover{background:url(../images/1_05.jpg); color:#fff;}

#bar{ float:left; width:960px; padding-top:10px; padding-bottom:10px;}
.btp{ float:left; border:#ded7d1 solid 1px;}
.btp img{ float:left;}
.bnr{ float:right; width:214px; padding:2px; border:#ded7d1 solid 1px; padding-bottom:7px;}
.ban{float:left; width:198px; padding-bottom:0px; }
.ban a{ float:left; padding:5px; }
.bnr ul{ float:left; width:200px; padding:7px; padding-top:0px;}
.bnr li{ float:left; width:200px;background:url(../images/1_09.jpg) no-repeat left;}
.bnr li a{ padding-left:20px; line-height:24px;}

#news{float:left; width:920px;background:url(../images/1_10.jpg); padding-left:40px; height:40px; line-height:30px;}
#main{ float:left; width:960px; padding-top:10px;}
#left{ float:left; width:730px;}
#lmb{ float:left; width:726px; padding:1px;border:#ded7d1 solid 1px; margin-bottom:10px;}
#lbt{float:left; width:726px;background:url(../images/1_11.jpg); height:38px;}
.str{ float:left; width:93px;background:url(../images/1_12.jpg) no-repeat top right; height:25px; text-align:center; line-height:25px; font-size:14px; margin-top:13px; padding-left:15px;}
#lnr{float:left; width:706px; padding:10px;min-height:499px;}
#lnr p{ float:left; line-height:20px; margin-bottom:-20px; padding:0px; }
#lnrindex{float:left; width:706px; padding:10px;}
.pmk{ float:left; width:130px; height:130px; padding-left:20px; padding-right:25px;}
.ys{color:#803227;}
.pt{ float:left; padding-left:20px;}
.pz{float:left; width:130px; padding-top:10px;}

#qhmb{float:left; width:356px; padding:1px;border:#ded7d1 solid 1px; margin-bottom:10px;}
#qbt{float:left; width:356px;background:url(../images/1_11.jpg); height:38px;}
#qnr{float:left; width:336px; padding:10px;}
.qwz{ float:left;width:336px; padding-bottom:12px;}
.qtp{ float:left;}
.qz{ float:right; width:178px; padding-top:6px;}
.qz strong{float:left;width:178px; padding-bottom:8px;}
.qz p{float:left;width:178px;}
#qnr ul{float:left; width:336px;}
#qnr li{float:left; width:336px; line-height:24px;}
#qnr li a{ float:left;background:0  8px url(../images/1_14.jpg) no-repeat; padding-left:15px; color:#666;}
#qnr li a:hover{color:#803227;}
.sj{ float:right;color:#803227; font-size:10px;}

.awz{ float:left;width:336px;border-bottom:#ded7d1 solid 1px; padding-bottom:10px; padding-top:2px; margin-bottom:14px;}
.atp{ float:left;border:#ded7d1 solid 1px; padding:1px;}
.az{ float:right; width:230px;}
.az strong{float:left;width:230px; padding-bottom:8px;}
.az p{float:left;width:230px;}
.amore{ float:right; padding-bottom:6px;}


#right{ float:right; width:220px;}
#cmb{float:left; width:216px; padding:1px;border:#ded7d1 solid 1px; margin-bottom:10px;}
#cbt{float:left; width:216px;background:url(../images/1_11.jpg); height:38px;}
#cnr{float:left; width:196px; padding:10px;}
#cnr ul{float:left; width:196px;}
#cnr li{float:left; width:196px; line-height:24px;}
#cnr li a{ float:left;background:0  8px url(../images/1_14.jpg) no-repeat; padding-left:15px; color:#666;}
#cnr li a:hover{color:#803227;}
#cform{ float:right; width:196px;height:26px; padding-top:14px; padding-bottom:7px;}
#ctext{ float:left; width:128px; height:22px; line-height:22px;background:0; border:#ded7d1 solid 1px;}
#cbut{ float:right; width:62px; background:url(../images/1_18.jpg); height:24px; border:0;}
.cwz{ float:left;width:196px;border-bottom:#ded7d1 solid 1px; padding-bottom:10px; padding-top:8px; margin-bottom:14px;}
.ctp{ float:left;border:#ded7d1 solid 1px; padding:1px;}
.cz{ float:right; width:100px;}
.cz strong{float:left;width:100px; padding-bottom:8px;}
.cz p{float:left;width:100px;}

#hzhb{float:left; width:956px; padding:1px;border:#ded7d1 solid 1px; margin-bottom:10px;}
#hbt{float:left; width:956px;background:url(../images/1_11.jpg); height:38px;}
#hnr{float:left; width:936px; padding:15px 10px;}
#hnr img{ float:left; border:#ededed solid 1px; margin-left:2px; margin-right:10px;}

#foot{ float:left; width:960px; padding-top:10px; padding-bottom:10px; border-top:#e0dad4 solid 1px;border-bottom:#e0dad4 solid 1px; margin-bottom:10px;}
.fl{ float:left; width:530px; line-height:24px;}
.fl img{ float:left; padding-right:15px;}
.fr{ float:right;}

#cnav{float:left; width:216px; padd
</style>
 
</head>
<body>
 <div style="height:1200px; text-align:center; padding:500px 0;">

 
 </div>
<script type="text/javascript">
document.writeln("<div id="divStayTopLeft" style="position:absolute;right:0;font-size:12px">");
document.writeln("  <div id="adv" style="float:right;width:162px;top:10px;right:30px;position:absolute;background-image:url(images/qqline.gif);border-bottom:solid 1px #eaeaea;">");
document.writeln("    <table cellpadding="0" cellspacing="0" style="float:left;width:150px;">");
document.writeln("      <tr>");
document.writeln("        <td colspan="2" style="text-align:left;line-height:30px;padding-left:20px;">&nbsp;</td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td colspan="2">&nbsp;</td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height="60" align="center" >期貨配資</td>");
document.writeln("        <td align="center" ><span style="width:50%;text-align:center;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=996994358&amp;site=qq&amp;menu=yes"><img src="http://wpa.qq.com/pa?p=2:996994358:41" border="0" alt="點擊這裡給我發訊息" /></a></span></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height="60" align="center" >開戶諮詢</td>");
document.writeln("        <td style="width:50%;text-align:center;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1317234451&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:1317234451:41" border="0" alt="點擊這裡給我發訊息"></a></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height="60" align="center" >股指驗資</td>");
document.writeln("        <td style="width:50%;text-align:center;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=123968516&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:123968516:41" border="0" alt="點擊這裡給我發訊息"></a></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height="65" align="center" >代客理財</td>");
document.writeln("        <td style="width:50%;text-align:center;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1511336277&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:1511336277:41" border="0" alt="點擊這裡給我發訊息"></a></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height="65" align="center" >技術指導</td>");
document.writeln("        <td style="width:50%;text-align:center;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=871011036&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:871011036:41" border="0" alt="點擊這裡給我發訊息"></a></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height="65" align="center" valign="middle" ><p>套利套保</p></td>");
document.writeln("        <td style="width:50%;text-align:center;"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=21863039&site=qq&menu=yes"><img src="http://wpa.qq.com/pa?p=2:21863039:41" border="0" alt="點擊這裡給我發訊息"></a></td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td height="20" colspan="2" align="center" >全國免費熱線</td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td colspan="2" align="center" >400-079-8880</td>");
document.writeln("      </tr>");
document.writeln("      <tr>");
document.writeln("        <td colspan="2" align="center" >021-60547777</td>");
document.writeln("      </tr>");
document.writeln("    </table>");
document.writeln("  </div>");
document.writeln("</div>");

var w3c = (document.getElementById) ? true : false;
var agt = navigator.userAgent.toLowerCase();
var ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("omniweb") == -1));
var mymovey = new Number();
function IeTrueBody(){
return (document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body;}
function GetScrollTop(){
return ie ? IeTrueBody().scrollTop : window.pageYOffset;}
function heartBeat(){
diffY=GetScrollTop();
mymovey += Math.floor((diffY-document.getElementById('divStayTopLeft').style.top.replace("px","")+50)*0.1);
document.getElementById('divStayTopLeft').style.top = mymovey+"px";}
function hiddenDiv(){
document.getElementById('divStayTopLeft').style.display="none";}
window.setInterval("heartBeat()",1);
</script>
</body>
</html>

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.