|
|
@ -444,8 +444,8 @@
|
|
|
|
})(i);
|
|
|
|
})(i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const slides = document.querySelectorAll('.slide');
|
|
|
|
var slides = document.querySelectorAll('.slide');
|
|
|
|
let currentSlide = 0;
|
|
|
|
var currentSlide = 0;
|
|
|
|
|
|
|
|
|
|
|
|
function showNextSlide() {
|
|
|
|
function showNextSlide() {
|
|
|
|
slides[currentSlide].classList.remove('active');
|
|
|
|
slides[currentSlide].classList.remove('active');
|
|
|
@ -506,12 +506,12 @@
|
|
|
|
speed: 30,
|
|
|
|
speed: 30,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
let el = document.querySelector('#ad');
|
|
|
|
var el = document.querySelector('#ad');
|
|
|
|
let styleTop = 0;
|
|
|
|
var styleTop = 0;
|
|
|
|
let styleLeft = 0;
|
|
|
|
var styleLeft = 0;
|
|
|
|
let verticalFlag = true;
|
|
|
|
var verticalFlag = true;
|
|
|
|
let horizontalFlag = true;
|
|
|
|
var horizontalFlag = true;
|
|
|
|
let isMouseOver = false; // 新变量用于跟踪鼠标是否在元素上
|
|
|
|
var isMouseOver = false; // 新变量用于跟踪鼠标是否在元素上
|
|
|
|
|
|
|
|
|
|
|
|
// 设置定时器的函数
|
|
|
|
// 设置定时器的函数
|
|
|
|
function moveElement() {
|
|
|
|
function moveElement() {
|
|
|
|