Home > Web Front-end > JS Tutorial > Javascript countdown page jump example summary_time and date

Javascript countdown page jump example summary_time and date

WBOY
Release: 2016-05-16 17:22:49
Original
1139 people have browsed it

Example 1:

Copy code The code is as follows:


10 minutes and 00 seconds

Example 2

Countdown jump page

Copy code The code is as follows:
JS countdown webpage automatic jump code< ;/title> <br><script language="JavaScript" type="text/javascript"><br> function delayURL(url) {<br> var delay = document.getElementById("time").innerHTML; <br> if(delay > 0) {<br> delay--;<br> document.getElementById("time").innerHTML = delay;<br> } else {<br> window.top.location.href = url;<br> }<br> setTimeout("delayURL('" url "')", 1000);<br> }<br></script><br><span id="time" style ="background: #00BFFF">3</span>It will automatically jump after 3 seconds. If it does not jump, please click the link below<a href="http://www.jb51.net">I Baidu</a><br><script type="text/javascript"><br>delayURL("http://www.jb51.net");<br></script><br> <br> </div> <p>Example 3 Anti-refresh countdown code<strong></strong> </p> <p></p> <div class="codetitle"> <span><a style="CURSOR: pointer" data="92235" class="copybut" id="copybut92235" onclick="doCopy('code92235')">Copy code<u></u></a> The code is as follows:</span><div class="codebody" id="code92235"> <br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  <br><html xmlns="http://www.w3.org/1999/xhtml">  <br><head>  <br><meta http-equiv="Content-Type" content="text/html; charset=gb2312" />  <br><title> www.jb51.net 
 
 
 
  
 

 


例4:结合图片数字的现实更漂亮

代码中有图片,直接提供一个演示地址,注意里面的图片地址

http://demo.jb51.net/js/2013/daojishi/index.htm
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template