diff --git a/ruoyi-admin/src/main/resources/templates/home/base.html b/ruoyi-admin/src/main/resources/templates/home/base.html index 1ac5a30..9652b8b 100644 --- a/ruoyi-admin/src/main/resources/templates/home/base.html +++ b/ruoyi-admin/src/main/resources/templates/home/base.html @@ -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() {