Authored by xuqi

service of me pages hover

... ... @@ -86,8 +86,8 @@
{{!-- 在线客服和返回顶部 --}}
<div class="service-top">
<a class="service" href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank">
<span class="iconfont">&#xe61c;</span>
<span class="hover-text hide">在线<br>客服</span>
<span class="iconfont hide">&#xe61c;</span>
<span class="hover-text">在线<br>客服</span>
</a>
<div class="return-top hide">
<span class="iconfont bold">&#xe617;</span>
... ...
... ... @@ -25,11 +25,11 @@ require('../common/return-top'); // return-top
lazyLoad($('.banner-img'));
// 浮动在线客服和返回顶部的鼠标移入移出切换效果
$('.service, .return-top').hover(function() {
$(this).find('.iconfont').addClass('hide').end().find('.hover-text').removeClass('hide');
}, function() {
$(this).find('.iconfont').removeClass('hide').end().find('.hover-text').addClass('hide');
});
function toggleShow(e) {
$(e.target).find('span').toggleClass('hide');
};
$('.service, .return-top').hover(toggleShow, toggleShow);
// repos service-return when window resize
$(window).resize(reposServiceTop);
... ...