欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery實現(xiàn)的網(wǎng)頁右下角tab樣式在線客服效果代碼

 更新時間:2015年10月23日 10:42:35   作者:企鵝  
這篇文章主要介紹了jQuery實現(xiàn)的網(wǎng)頁右下角tab樣式在線客服效果代碼,涉及jQuery簡單樣式變換控制技巧,具有一定參考借鑒價值,需要的朋友可以參考下

本文實例講述了jQuery實現(xiàn)的網(wǎng)頁右下角tab樣式在線客服效果代碼。分享給大家供大家參考,具體如下:

這是一款網(wǎng)頁右下角tab樣式的在線客服代碼,若在火狐或chrome瀏覽器下,客服是帶邊框陰影的,IE8下好像沒邊框效果,整體不如在Chrome、火狐、Opera瀏覽器下。這款在線客服代碼的底部使用了TAB選項卡的樣式,鼠標點擊可切換客服的內(nèi)容,還是挺新穎的。

運行效果截圖如下:

在線演示地址如下:

http://demo.jb51.net/js/2015/jquery-right-buttom-tab-style-online-demo/

具體代碼如下:

<!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>
<title>網(wǎng)頁右下角tab樣式的在線客服代碼</title>
<style>
.contact-bar{position: fixed;bottom: 0;right: 0;width: 400px;overflow: hidden;z-index: 9999}
.contact-bar .cb-btn{float: left;position: relative;height: 38px;font-size: 12px;line-height: 40px;text-transform: uppercase;border: 1px solid #000;border-left: none;color: #FFF;background-color: #292929;background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(41,41,41)), to(rgb(0,0,0)));background-image: -webkit-linear-gradient(top, rgb(41,41,41), rgb(0,0,0));background-image: -moz-linear-gradient(top, rgb(41,41,41), rgb(0,0,0));background-image: -o-linear-gradient(top, rgb(41,41,41), rgb(0,0,0));background-image: -ms-linear-gradient(top, rgb(41,41,41), rgb(0,0,0));background-image: linear-gradient(top, rgb(41,41,41), rgb(0,0,0));filter: progid: DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr='#292929', EndColorStr='#000000');-moz-box-shadow: inset 1px 0 0 #343534, inset 0 1px 0 #343534;-webkit-box-shadow: inset 1px 0 0 #343534, inset 0 1px 0 #343534;box-shadow: inset 1px 0 0 #343534, inset 0 1px 0 #343534}
.contact-bar .cb-btn: hover, .contact-bar .cb-btn-hover{background-color: #4e4e4e;background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(78,78,78)), to(rgb(39,39,39)));background-image: -webkit-linear-gradient(top, rgb(78,78,78), rgb(39,39,39));background-image: -moz-linear-gradient(top, rgb(78,78,78), rgb(39,39,39));background-image: -o-linear-gradient(top, rgb(78,78,78), rgb(39,39,39));background-image: -ms-linear-gradient(top, rgb(78,78,78), rgb(39,39,39));background-image: linear-gradient(top, rgb(78,78,78), rgb(39,39,39));filter: progid: DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr='#4e4e4e', EndColorStr='#272727');-moz-box-shadow: inset 1px 0 0 #5a5b5a, inset 0 1px 0 #5a5b5a;-webkit-box-shadow: inset 1px 0 0 #5a5b5a, inset 0 1px 0 #5a5b5a;box-shadow: inset 1px 0 0 #5a5b5a, inset 0 1px 0 #5a5b5a;cursor: pointer}
.contact-bar .cb-btn-selected, .contact-bar .cb-btn-selected: hover, .contact-bar .cb-btn-selected.cb-btn-hover{background-image: none;background-color: #232423;-moz-box-shadow: inset 0 5px 20px black;-webkit-box-shadow: inset 0 5px 20px black;box-shadow: inset 0 5px 20px black}
.contact-bar .cb-btn.cb-chat, .contact-bar .cb-btn.cb-phone{width: 178px}
.contact-bar .cb-btn.cb-chat{border-left: 1px solid #000}
.contact-bar .cb-btn-selected.cb-chat{-webkit-border-radius: 0;-moz-border-radius: 0;border-radius: 0}
.contact-bar .cb-chat .cb-btn-text{background: url(images/cb-icon-livechat.png) no-repeat 12px 14px}
.contact-bar .cb-phone .cb-btn-text{background: url(images/cb-icon-phone.png) no-repeat 14px 11px}
.contact-bar .cb-btn-text{float: left;height: 38px;padding-left: 40px;font-weight: bold}
.contact-bar .cb-kb, .cb-twitter, .cb-facebook{width: 40px;text-indent: -3000em}
.contact-bar .cb-kb span, .contact-bar .cb-twitter span, .contact-bar .cb-facebook span{float: left;width: 100%}
.contact-bar .cb-kb span{background: url(images/cb-icon-kb.png) no-repeat center center}
.contact-bar .cb-twitter span{background: url(images/cb-icon-twitter.png) no-repeat center center}
.contact-bar .cb-facebook span{background: url(images/cb-icon-facebook.png) no-repeat center center}
.cb-status{position: absolute;right: 0;width: 10px;height: 10px;margin: 15px 10px 16px 0}
.cb-online{background: url(images/cb-status-online.png) no-repeat center center}
.cb-offline{background: url(images/cb-status-offline.png) no-repeat center center}
.cb-popup{z-index: 9998;position: fixed;bottom: 0;right: 0;width: 400px;padding-bottom: 40px;background-color: #FFF;-webkit-border-top-left-radius: 5px;-moz-border-radius-topleft: 5px;border-top-left-radius: 5px;-moz-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.36);-webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.36);box-shadow: 0 1px 10px rgba(0, 0, 0, 0.36)}
.cb-popup-toolbar{width: 380px;line-height: 10px;padding: 5px 10px}
.cb-popup-close{padding: 5px;font-size: 18px;font-weight: bold;position: absolute;right: 0;top: 0}
.cb-popup-close: hover{cursor: pointer}
.cb-popup-inner{padding: 50px 0;width: 400px;text-align: center}
.cb-popup.chat-invitation{background-color: transparent;height: 168px}
.cb-popup.call-us{height: 168px}
.cb-popup.chat-invitation .cb-popup-close{color: #FFF;text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);z-index: 99999}
.cb-popup #eye-catcher{float: left;margin-top: -10px}
.cb-popup #eye-catcher a{background: url(images/livechat.png) no-repeat;height: 170px;width: 400px;display: block;text-indent: -999em}
.cb-popup p{color: #999}
.cb-popup .cb-btn{text-align: center;border: 1px solid #043b8f;color: #FFF;line-height: 20px;font-weight: bold;text-decoration: none;background-color: #49bae3;background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(73,186,227)), to(rgb(42,73,180)));background-image: -webkit-linear-gradient(top, rgb(73,186,227), rgb(42,73,180));background-image: -moz-linear-gradient(top, rgb(73,186,227), rgb(42,73,180));background-image: -o-linear-gradient(top, rgb(73,186,227), rgb(42,73,180));background-image: -ms-linear-gradient(top, rgb(73,186,227), rgb(42,73,180));background-image: linear-gradient(top, rgb(73,186,227), rgb(42,73,180));filter: progid: DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr='#49bae3', EndColorStr='#2a49b4');-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;-moz-box-shadow: inset 0 1px 2px #25daee;-webkit-box-shadow: inset 0 1px 2px #25daee;box-shadow: inset 0 1px 2px #25daee;text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5)}
.cb-btn.cb-btn-first{margin-left: 0}
.cb-btn.cb-btn-last{margin-right: 0}
.cb-form .cb-btn{width: 100%}
.cb-popup .contact-phone{font-size: 30px;font-weight: bold;line-height: 1;margin-bottom: .25em}
</style>
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {  
  $(".cb-popup-close").click(function() {
    $(".cb-popup").hide();
  });
  $(".cb-chat").click(function() {
    $(".call-us").hide();
    $(".chat-invitation").toggle();
  });
  $(".cb-phone").click(function() {
    $(".chat-invitation").hide();
    $(".call-us").toggle();
  });
});
</script>
</head>
<body style="height:1200px;">
<div class="contact-bar">
 <div class="cb-btn cb-phone"> <span class="cb-btn-text">123456</span> <span class="cb-status cb-online">&nbsp;</span> </div>
 <div class="cb-btn cb-chat"> <span class="cb-btn-text">在線客服</span> <span class="cb-status cb-online">&nbsp;</span> </div>
 <div class="cb-btn cb-kb"> <a href="#" target="_blank" title="腳本之家"><span class="cb-btn-img">腳本之家</span></a> </div>
</div>
<div class="call-us cb-popup">
 <div class="cb-popup-toolbar"> <span class="cb-popup-close">×</span> </div>
 <div class="cb-popup-inner">
  <div class="popup-contactInfo">
   <div class="contact-phone">123456789</div>
  </div>
  <p>歡迎加入QQ群<a target="_blank" ><img border="0" src="http://pub.idqqimg.com/wpa/images/group.png" alt="歡迎加入QQ群" title="歡迎加入QQ群"></a> </p>
 </div>
</div>
<div class="chat-invitation cb-popup" style="display: none;" >
 <div class="cb-popup-toolbar"> <span class="cb-popup-close">×</span> </div>
 <div id="eye-catcher"> <a href="#" onClick="javascript:window.open('http://wp.qq.com/wpa/qunwpa?idkey=4bf27be4ad1c0d244515000be05d9c0efbb2c52ae1feb7247a40950720', '_blank', 'height=405, width=506,toolbar=no,scrollbars=no,menubar=no,status=no');; return false;" title="點擊與在線客服交談">在線客服</a> </div>
</div>
</body>
</html>

希望本文所述對大家jQuery程序設(shè)計有所幫助。

相關(guān)文章

  • jquery.cookie用法詳細解析

    jquery.cookie用法詳細解析

    本篇文章主要是對jquery.cookie的用法進行了詳細的分析介紹,需要的朋友可以過來參考下,希望對大家有所幫助
    2013-12-12
  • Jquery Ajax解析XML數(shù)據(jù)(同步及異步調(diào)用)簡單實例

    Jquery Ajax解析XML數(shù)據(jù)(同步及異步調(diào)用)簡單實例

    本篇文章主要是對Jquery Ajax解析XML數(shù)據(jù)(同步及異步調(diào)用)的簡單實例進行了介紹,需要的朋友可以過來參考下,希望對大家有所幫助
    2014-02-02
  • jQuery大于號(>)選擇器的作用解釋

    jQuery大于號(>)選擇器的作用解釋

    這篇文章主要介紹了jQuery大于號(>)選擇器的作用解釋,本文用代碼實例講解jQuery大于號的作用,需要的朋友可以參考下
    2015-01-01
  • jQuery中的.bind()、.live()和.delegate()之間區(qū)別分析

    jQuery中的.bind()、.live()和.delegate()之間區(qū)別分析

    jQuery中的.bind()、.live()和.delegate()之間區(qū)別分析,學(xué)習(xí)jquery的朋友可以參考下。
    2011-06-06
  • jQuery超精致圖片輪播幻燈片特效代碼分享

    jQuery超精致圖片輪播幻燈片特效代碼分享

    這篇文章主要為大家詳細介紹了jQuery超精致圖片輪播幻燈片特效,圖片輪播效果特別適合做產(chǎn)品展示,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2015-09-09
  • jQuery EasyUI封裝簡化操作

    jQuery EasyUI封裝簡化操作

    這篇文章主要為大家詳細介紹了Jquery EasyUI封裝簡化操作,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2016-09-09
  • jQuery中extend函數(shù)詳解

    jQuery中extend函數(shù)詳解

    這篇文章主要介紹了jQuery中extend函數(shù)詳解的相關(guān)資料,需要的朋友可以參考下
    2015-07-07
  • jQuery中each循環(huán)的跳出和結(jié)束實例

    jQuery中each循環(huán)的跳出和結(jié)束實例

    下面小編就為大家?guī)硪黄猨Query中each循環(huán)的跳出和結(jié)束實例。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
    2017-08-08
  • jQuery實現(xiàn)購物車全功能

    jQuery實現(xiàn)購物車全功能

    這篇文章主要為大家詳細介紹了jQuery實現(xiàn)購物車全功能,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下
    2021-01-01
  • jQuery中$(function() {});問題詳解

    jQuery中$(function() {});問題詳解

    $(function() {});是$(document).ready(function(){ })的簡寫,最早接觸的時候也說$(document).ready(function(){ })這個函數(shù)是用來取代頁面中的window.onload;但是今天發(fā)現(xiàn) 好像不是這樣回事!是在做一個頁面載入效果時發(fā)現(xiàn)的!
    2015-08-08

最新評論