feat:ie报错问题

new-v20240713
wangxy 9 months ago
parent dd1e1a65c3
commit b9a11ff654

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

Loading…
Cancel
Save