질문이 있습니다. 제 문제는 기본 사이트에서 마우스 오버 기능이 필요 없다는 것입니다. 호버 기능이없는 가격 서클이 필요합니다. 가격 서클은 사이트에 영구적으로 표시되어야합니다. 도와주세요.호버 설정 js
당신이 볼 수 있듯이 :
샘플 사이트는 여기
$('.products-grid .item').live({
mouseenter: function(){
if (mobile) return;
$('.hover .price-box', this).css({
'opacity':0
});
if (Shopper.price_circle) {
if (!$(this).hasClass('calc-price-box')) {
var padding = Math.floor(($('.hover .price-box', this).actual('width') - $('.hover .price-box', this).actual('height'))/2 + 15);
$('.hover .price-box', this).css({
'padding':padding+'px 15px',
'margin':(-(25+padding*2+$('.hover .price-box', this).actual('height')))+'px 0 0 0'
});
$(this).addClass('calc-price-box');
}
var that = this;
$('.hover', this).show(0, function(){ $('.hover .price-box', that).animate({opacity:1}, 600) });
} else {
$('.hover', this).show();
}
$(this).addClass('no-shadow');
},
mouseleave: function(){
if (mobile) return;
$('.hover', this).hide();
$(this).removeClass('no-shadow');
}
});