当前位置:

上海体育盛宴,在线直击!直播频道,见证精彩时刻

来源:24直播网
见证精彩时刻

欢迎来到上海体育盛宴在线直播频道!在这里,您可以实时观看上海最激动人心的体育赛事,见证精彩时刻。

距离赛事开始还有: 00:00:00

即将到来的赛事

已结束赛事

<script> // 设置倒计时var countdownInterval = setInterval(function() {var startTime = new Date();var endTime = new Date("2023-07-10T15:00:00+08:00");var timeLeft = endTime - startTime;// 计算天、时、分、秒var days = Math.floor(timeLeft / (1000 60 60 24));var hours = Math.floor((timeLeft % (1000 60 60 24)) / (1000 60 60));var minutes = Math.floor((timeLeft % (1000 60 60)) / (1000 60));var seconds = Math.floor((timeLeft % (1000 60)) / 1000);// 格式化时间字符串var countdownStr = days+ " 天 " + hours + " 时 " + minutes + " 分 " + seconds + " 秒";document.getElementById("countdown").innerHTML = countdownStr;// 当时间为 0 时停止倒计时if (timeLeft <= 0) {clearInterval(countdownInterval);}}, 1000);// 动态生成赛事列表var upcomingEvents = [{name: "足球:上海海港 vs 上海申花",date: "2023-07-10"},{name: "篮球:上海久事 vs 浙江广厦",date: "2023-07-12"},{name: "排球:上海女排 vs 天津女排",date: "2023-07-15"}];var pastEvents = [{name: "足球:上海海港 vs 武汉三镇",date: "2023-07-08"},{name: "篮球:上海久事 vs 广东宏远",date: "2023-07-09"}];function createEventList(events, id) {var list = document.getElementById(id);for (var i = 0; i < events.length; i++) {var event = events[i];var li = document.createElement("li");li.setAttribute("data-event-id", event.id);var eventName = document.createElement("p");eventName.classList.add("event-name");eventName.innerHTML = event.name;var eventDate = document.createElement("p");eventDate.classList.add("event-date");eventDate.innerHTML = event.date;li.appendChild(eventName);li.appendChild(eventDate);list.appendChild(li);}}createEventList(upcomingEvents, "upcoming-events");createEventList(pastEvents, "past-events"); </script>