Sport e tempo libero

Ace Series ACE-PRO AMZ-H - Pink

A partire da 189,99 $
249,99 $ Sconto del - 24%
Prezzo
Prezzo
Ace Series ACE-PRO AMZ-H - Pink

Disponibilità

Gtplayer

$(function () { $(".change_btn").click(function () { $(".change_btn").css("background","#ffffff00")…

Prezzo
189,99$ 249,99 $

Ace Series ACE-PRO AMZ-H - Pink

$(function () { $(".change_btn").click(function () { $(".change_btn").css("background","#ffffff00"); $(this).css("background","#ffffff30"); let index = $(".change_btn").index($(this)); console.info(index); $(".change_img").hide(); $(".change_img").eq(index).show(); }); $(".change_btn_m").click(function () { $(".change_btn_m").css("background","#ffffff00"); $(this).css("background","#ffffff30"); let index = $(".change_btn_m").index($(this)); console.info(index); $(".change_img_m").hide(); $(".change_img_m").eq(index).show(); }) }) $(function () { $('#showend').on('ended',function(){ $("#showend").fadeOut(300); }); }); $(".showVideo").click(function () { let vide = $("#showend"); vide.fadeIn(300); vide[0].play(); }); #ModelBox{display: none;position: fixed;left: 0;top: 0; width: 100%;height: 100%;background: #0000007a;z-index: 100;padding: 5% 23%;} #ImgModel{position: relative;height: 100%;} #ImgModel>div {height: 100%;text-align: center;} #ImgModel>div>img{height: 100%} #ImgModel>span {cursor: pointer;position: absolute;top: 40%;width: 5%;text-align: center;font-size: 50px;font-family: cursive;font-weight: bold;color: white;} #ImgModel>ul {position: absolute;left: 30%;width: 40%;bottom: 1%;margin: 0;padding: 0;overflow: auto;} #ImgModel>ul>li {text-decoration: none;cursor: zoom-in;width: 18%;margin: 0 1%;display: block;opacity: 0.6;float: left;} #ImgModel>ul>li:hover {opacity: 1;} #ImgModel>ul>li>img{width: 100%} #guan{position: absolute;right: 1%;top: 9%;font-size: 35px;color: white;font-family: cursive;cursor: pointer} /*按钮的样式*/ .showModel {position: absolute;width: 13.8%;height: 68.4%;cursor: pointer;background: #ff000000;} .showModel1 {left: 13.5%;top: 14.4%;} .showModel2 {left: 28.4%;top: 14.4%;} .showModel3 {left: 43.2%;top: 14.4%;} .showModel4 {left: 58%;top: 14.4%;} .showModel5 {left: 72.8%;top: 14.4%;} @media screen and (max-width:800px) { #ModelBox {padding: 60% 1%;} #ImgModel>span {font-size: 37px;} #guan{font-size: 26px;} #ImgModel>ul>li {width: 31%;} .showModel {width: 29.7%;height: 63.6%;} .showModel1 {top:18%;left: 3.8%;} .showModel2 {top:18%;left: 35%;} .showModel3 {top:18%;left: 66.5%;} } × < > $(function () { //手机端删除最后两张图 if (screen.height >= 800 && screen.width >= screen.height) {}else { let Imgs = $("#ImgModel>div"); let lis = $("#ImgModel>ul>li"); Imgs.eq(3).remove(); Imgs.eq(4).remove(); lis.eq(3).remove(); lis.eq(4).remove(); $(".showModel4").remove(); $(".showModel5").remove(); } let ind=0; $("#prevImg").click(function () { ind--; if(ind<0){ ind=($("#ImgModel>ul>li").length-1); } changeImg(ind); }); $("#nextImg").click(function () { ind++; if(ind>($("#ImgModel>ul>li").length-1)){ ind=0; } changeImg(ind); }); $("#ImgModel>ul>li").click(function () { let li = $(this); ind = $("#ImgModel>ul>li").index(li); changeImg(ind); }); //切换图片 function changeImg(index){ $("#ImgModel>div").hide(); $("#ImgModel>div").eq(index).show(); } //显示窗口 $(".showModel").click(function () { $("#ModelBox").fadeIn(300); let span = $(this); ind = $(".showModel").index(span); changeImg(ind); }); //esc隐藏 $(document).keyup(function(event) { switch (event.keyCode) { case 27: $("#ModelBox").fadeOut(300); } }) })