第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

簡(jiǎn)單明了代碼

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>跳轉(zhuǎn)提示頁(yè)面</title>


<script type="text/javascript">

? // 倒計(jì)時(shí)跳轉(zhuǎn)

? function countdown() {

? ? var seconds = 5; // 跳轉(zhuǎn)倒計(jì)時(shí)秒數(shù)

? ? var countdownElement = document.getElementById('countdown');


? ? var countdownInterval = setInterval(function() {

? ? ? seconds--;

? ? ? countdownElement.innerText = seconds;


? ? ? if (seconds <= 0) {

? ? ? ? clearInterval(countdownInterval);

? ? ? ? redirectToNewPage();

? ? ? }

? ? }, 1000);

? }


? // 跳轉(zhuǎn)到新頁(yè)面

? function redirectToNewPage() {

? ? window.location.href = "http://idcbgp.cn/";

? }


? // 返回前一個(gè)頁(yè)面

? function goBack() {

? ? window.history.back();

? }

</script>

</head>

<body onload="countdown()">

? <h1>跳轉(zhuǎn)提示頁(yè)面</h1>

? <p>將在 <span id="countdown">5</span> 秒后自動(dòng)跳轉(zhuǎn)到新的地址。</p>

? <button onclick="goBack()">返回</button>

</body>

</html>


正在回答

舉報(bào)

0/150
提交
取消
JavaScript進(jìn)階篇
  • 參與學(xué)習(xí)       468760    人
  • 解答問(wèn)題       22376    個(gè)

本課程從如何插入JS代碼開始,帶您進(jìn)入網(wǎng)頁(yè)動(dòng)態(tài)交互世界

進(jìn)入課程

簡(jiǎn)單明了代碼

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)