PHP - EasyUI DataGrid 資料取的方式介紹
763
2023-12-09
本文實(shí)例講述了jQuery實(shí)現(xiàn)懸浮在右上角的網(wǎng)頁客服效果代碼。分享給大家供大家參考,具體如下:
這是款網(wǎng)頁在線客服代碼,應(yīng)用了jquery插件,兼容性不錯。默認(rèn)狀態(tài)下,客服只顯示一個圖片Button,用鼠標(biāo)點(diǎn)擊時展開全部內(nèi)容,可用作QQ客服,售后客服等,可以作為網(wǎng)站快速通道,方便用戶進(jìn)行相應(yīng)的操作。
運(yùn)行效果截圖如下:
在線演示地址如下:
http://demo.gimoo.net/js/2015/jquery-right-top-wen-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> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> .demo_menu{font-size: 14px;text-align: center;margin: 10px 0 0 0;color: #999;line-height: 180%;} .demo_menu b{color: #333;} .demo_menu a, .demo_menu a: visited{color: #F00;font-size: 14px;} .demo_menu a: hover{color: #090;font-size: 14px;} body{background: #ccc;} .text{font-size: 12px;} #kefu{position: fixed;_position: absolute;_top: expression(documentElement.scrollTop + 20 + "px");top: 20px;right: 0;z-index: 999} #kefu .box-content{position: relative;background-color: #fff;width: 170px;} #kefu .title-btn, #kefu .qq, #kefu .phone, #kefu .service, #kefu .on span{background: url(images/kefu.png) no-repeat} #kefu .title-btn{width: 33px;height: 97px;position: absolute;top: 0;left: -33px;} #kefu .title-btn span{display: none} #kefu .on span{background-position: -129px 7px;height: 16px;display: block;} #kefu .pad{padding: 16px 10px 10px;overflow: hidden;font-size: 12px;} #kefu .pad a{text-decoration: none;} #kefu .qq{background-position: 0 -118px;display: inline-block;zoom: 1;*display: inline;padding-left: 16px;} #kefu .phone{height: 28px;background-position: 0 -153px;margin: 18px 0} #kefu .service{display: inline-block;zoom: 1;*display: inline;height: 51px;background-position: 0 -203px;width: 151px;margin-left: 3px} #kefu .text{background-color: #ededed;padding: 5px 10px;text-align: center} #kefu .off{width: 0;} #kefu .off .pad, #kefu .off .text{display: none} p, p a{font-size: 12px;color: #666;} </style> <title>始終固定在網(wǎng)頁右上角的在線客服QQ代碼</title> <meta http-equiv="X-UA-Compatible" content="IE=7"> <script src="http://www.gimoo.net/t/1904/jquery-1.6.2.min.js" type="text/javascript"></script> </head> <body> <div id="kefu"> <div class="box-content off"> <div class="title-btn cu"><span><a ></a></span></div> <div class="pad"> <a class="qq" style="margin-right:16px">售前咨詢</a><a class="qq">廣告-合作</a> <div class="phone"></div> <a class="service" target="_blank"></a> </div> <div class="text"> 客服時間:(9:00-18:00)<br> (周六日休息) </div> </div> </div> <script type="text/javascript"> $(".select").hover( function () { $(this).find(".msgNav").show(); }, function () { $(this).find(".msgNav").hide(); } ); $(".title-btn").toggle( function () { $(this).addClass("on"); $(this).parent(".box-content").removeClass("off"); }, function () { $(this).removeClass("on"); $(this).parent(".box-content").addClass("off"); } ); </script> </body> </html>
希望本文所述對大家jQuery程序設(shè)計(jì)有所幫助。
#免責(zé)聲明#
本站[綠夏技術(shù)導(dǎo)航]提供的一切軟件、教程和內(nèi)容信息僅限用于學(xué)習(xí)和研究目的;不得將上述內(nèi)容用于商業(yè)或者非法用途,否則,一切后果請用戶自負(fù)。本站信息來自網(wǎng)絡(luò)收集整理,版權(quán)爭議與本站無關(guān)。您必須在下載后的24個小時之內(nèi),從您的電腦或手機(jī)中徹底刪除上述內(nèi)容。如果您喜歡該程序或內(nèi)容,請支持正版,購買注冊,得到更好的正版服務(wù)。我們非常重視版權(quán)問題,如有侵權(quán)請郵件[admin@lxwl520.com]與我們聯(lián)系進(jìn)行刪除處理。敬請諒解!