轮播图按钮

main
AviderMin 3 weeks ago
parent 09e38bc54e
commit 7347229849

@ -29,6 +29,7 @@
<img src=""> <img src="">
</div> </div>
<div class="dots-container"></div>
<div class="newszy"> <div class="newszy">
<h3>新闻的作用</h3> <h3>新闻的作用</h3>
<ul> <ul>
@ -54,10 +55,13 @@
let pro = (window.pageYOffset / totalHight) * 100 let pro = (window.pageYOffset / totalHight) * 100
Prostick.style.width = pro + '%' Prostick.style.width = pro + '%'
}) })
const carouselImages = document.querySelector('.banner img')
document.addEventListener("DOMContentLoaded",function(){ document.addEventListener("DOMContentLoaded",function(){
const imgs =[] const imgs =[];
const carouselImages = document.querySelector('.banner img');
const dotsContainer = document.querySelector('.dots-container');
let currentIndex = 0;
}) })
</script> </script>
</body> </body>

Loading…
Cancel
Save