佳能SX1:卓越影像与速度的完美结合
.
.section-
.sx1-
.sx1-
.sx1-frame
.sx1-
.sx1-overlay-
.sx1-overlay-
.sx1-
.sx1-text-
.sx1-text-
.sx1-
.sx1-btn:
.sx1-direction-
.sx1-direction-nav:
.sx1-
.sx1-
.sx1-
.sx1-speed:
.sx1-container .sx1-
.sx1-container .sx1-
.sx1-container .sx1-
.sx1-container .sx1-direction-
.sx1-container .sx1-
.sx1-container .sx1-prev,
.sx1-container .sx1-
.sx1-container .sx1-btn:hover,
.sx1-container .sx1-direction-nav:hover,
.sx1-container .sx1-speed:
@media (max-width: 767px) {
.sx1-
.sx1-
.sx1-
.sx1-
.sx1-direction-
.sx1-
}
佳能SX1:卓越影像与速度的完美结合
下一张
// 声明变量
let index = 0;
let count = 0;
let speed = 0;
function updateSpeed() {
count++;
if (count % 2 === 0) {
speed++;
}
}
function resetSpeed() {
count = 0;
speed = 0;
}
let interval;
function startTimer() {
interval = setInterval(resetSpeed, 50);
}
function stopTimer() {
clearInterval(interval);
}
// 设置初始速度
let speed = 0;
// 点击停止计时按钮,立即停止计时
document.querySelector(".sx1-btn").addEventListener("click", stopTimer);
// 更新速度
setInterval(updateSpeed, 100);
// 更新随机图片
function getRandomImage() {
const letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
const length = 8;
const randomIndex = Math.floor(Math.random() * length);
return letters[randomIndex];
}
// 显示随机图片
const images = [];
for (let i = 0; i