| HTML: <div class="online">
 <div class="hide"></div>
 <div class="contactus">
 <div id="Telephonist">
 $func_contact(show=qq|tel|mail|wx|qrcode,cln=0)$</div>
 </div>
 <div class="top"></div>
 </div>
 
 CSS:
 .online {
 display: none;
 }
 
 @include media-breakpoint-up(sm) {
 .online {
 display: flex;
 flex-flow: column wrap;
 position: fixed;
 right: 0;
 top: 200px;
 z-index: 1000;
 animation: sliderIn;
 animation-duration: 2s;
 opacity: .5;
 
 &:hover {
 opacity: 1;
 }
 
 .dt {
 display: none;
 }
 
 div,
 .Margin>div {
 display: flex;
 flex-flow: column wrap !important;
 justify-content: flex-start;
 align-items: center;
 padding: 0 !important;
 cursor: pointer;
 position: relative;
 
 &::before {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 width: 50px !important;
 height: 50px;
 background: $fst;
 color: #fff !important;
 margin-right: 0 !important;
 font-size: 2rem !important;
 border-top: 1px solid white;
 }
 }
 
 .Margin>div {
 
 .dd {
 display: none;
 position: absolute;
 right: 52px;
 z-index: 1000;
 white-space: nowrap;
 background: $fst;
 min-height: 50px;
 padding: 15px;
 color: #fff;
 font-size: 15px;
 
 a {
 color: white !important;
 font-size: 15px;
 
 c {
 color: white;
 }
 
 &:hover {
 color: #ff0;
 }
 
 img {
 width: 150px;
 }
 }
 }
 
 &:hover {
 .dd {
 display: flex;
 flex-direction: column;
 text-align: left;
 }
 }
 }
 
 .hide {
 background: #ff0;
 
 &:before {
 content: '\f054';
 color: #fff;
 }
 }
 
 .top:before {
 content: '\f077';
 color: #fff;
 }
 }
 }
 
 
 @keyframes sliderIn {
 from {
 top: 0;
 opacity: 1;
 }
 
 to {
 top: 200px;
 opacity: .5;
 }
 }
 
 
 JS:
 $(function () {
 var dir = "";
 var qs = "";
 $(function () {
 $(".phone .wechat").hover(function () { $(this).attr("title", $(this).find(".dt").html()); $(this).find(".dd").slideDown(); }, function () { $(this).find(".dd").slideUp(); })
 $(".phone .qrcode").hover(function () { $(this).attr("title", $(this).find(".dt").html()); $(this).find(".dd").slideDown(); }, function () { $(this).find(".dd").slideUp(); })
 $(".phone .xcx").hover(function () { $(this).attr("title", $(this).find(".dt").html()); $(this).find(".dd").slideDown(); }, function () { $(this).find(".dd").slideUp(); })
 $(".phone .app").hover(function () { $(this).attr("title", $(this).find(".dt").html()); $(this).find(".dd").slideDown(); }, function () { $(this).find(".dd").slideUp(); })
 $(".online .top").click(function () { $("html").animate({ scrollTop: 0 }, 1000); });
 var i = 0;
 if ($(window).width() <= 658) i = 1;
 $(".online").on("click", ".hide", function () {
 i += 1;
 if (i % 2 == 1) {
 $(".online .hide").animate({ width: 60 }, 500);
 $(".online").animate({ right: -50 }, 500);
 } else {
 $(".online .hide").animate({ width: 50 }, 500)
 $(".online").animate({ right: 0 }, 500);
 }
 })
 $(".online div").hover(function () {
 $(this).find("dd").animate({ width: "toggle" }, 300)
 })
 $(".navbar-toggler").click(function () { $(".menu").slideToggle("slow"); });
 if ($("pager").length > 0) {
 $("pager a").click(function () {
 if ($(this).attr("page") < $("cur").attr("rel")) { dir = "prev"; }
 $.send("", $.extend({ dir: dir, page: $(this).attr("page") }, qs))
 })
 $("input[name=skip]").click(function () {
 if ($("input[name=jump]").val() < $("cur").attr("rel")) { dir = "prev"; }
 if ($("input[name=jump]").val() == $("cur").attr("rel")) { dir = $(this).attr("dir"); }
 $.send("", $.extend({ dir: dir, page: $("input[name=jump]").val() }, qs));
 })
 }
 })
 })
 模板:yongyu,whww,feichi
 
 
 
 |