|
|
@ -45,6 +45,27 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
let totalHight;
|
|
|
|
let totalHight;
|
|
|
|
let Prostick;
|
|
|
|
let Prostick;
|
|
|
|
|
|
|
|
const imgs = document.querySelector('.banner img')
|
|
|
|
|
|
|
|
let Picsrc = [
|
|
|
|
|
|
|
|
{ src: 'pics/43401.png' },
|
|
|
|
|
|
|
|
{ src: 'pics/43402.png' },
|
|
|
|
|
|
|
|
{ src: 'pics/47202.jpg' },
|
|
|
|
|
|
|
|
{ src: 'pics/47204.jpg' }
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
let i = 0
|
|
|
|
|
|
|
|
setInterval(function Imgs() {
|
|
|
|
|
|
|
|
if (i < Picsrc.length) {
|
|
|
|
|
|
|
|
imgs.src = Picsrc[i].src
|
|
|
|
|
|
|
|
console.log(i)
|
|
|
|
|
|
|
|
i++
|
|
|
|
|
|
|
|
if (i == Picsrc.length) {
|
|
|
|
|
|
|
|
i = 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, 2000)
|
|
|
|
|
|
|
|
window.addEventListener('load', function () {
|
|
|
|
|
|
|
|
imgs.src = Picsrc[0].src
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
let imgs = [];
|
|
|
|
let imgs = [];
|
|
|
|