How many seconds will it automatically jump to other pages (js script)
Method 1:
Add js between <head></head>
The code copy is as follows:
<script language="javascript">
var secs = 3; //Countdown seconds
var URL;
function Load(url){
URL = url;
for(var i=secs;i>=0;i--)
{
window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000);
}
}
function doUpdate(num)
{
document.getElementById('ShowDiv').innerHTML = 'It will automatically jump to the home page after '+num+' seconds';
if(num == 0) { window.location = URL; }
}
</script>
Then add <body onload="Load('index.asp')"> index.asp to the page you want to jump to.
Add <div id="ShowDiv"></div> between <body></body>
Method 2:
The code copy is as follows:
<p style="text-indent: 2em; margin-top: 30px;">
The system will automatically jump to the new URL in seconds after <span id="time">5</span>. If the jump cannot be redirected, please click</ a>. </p>
<script type="text/javascript">
delayURL();
function delayURL() {
var delay = document.getElementById("time").innerHTML;
var t = setTimeout("delayURL()", 1000);
if (delay > 0) {
delay--;
document.getElementById("time").innerHTML = delay;
} else {
clearTimeout(t);
window.location.href = "//www.VeVB.COM";
}
}
</script>