预览加载中,请您耐心等待几秒...
1/3
2/3
3/3

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

一些页面自动跳转的实现功能:8秒后,自动跳转到同目录下的return.html文件1)html的实现<head><metahttp-equiv="refresh"content="5;url=return.html"></head>2)javascript的实现<scriptlanguage="javascript"type="text/javascript">setTimeout("javascript:location.href='return.html'",8000);</script>3)结合了倒数的javascript实现(IE)<spanid="totalSecond">8</span><scriptlanguage="javascript"type="text/javascript">varsecond=totalSecond.innerText;setInterval("redirect()",1000);functionredirect(){totalSecond.innerText=--second;if(second<0)location.href='return.html';}</script>3')结合了倒数的javascript实现(firefox)<scriptlanguage="javascript"type="text/javascript">varsecond=document.getElementById('totalSecond').textContent;setInterval("redirect()",1000);functionredirect(){document.getElementById('totalSecond').textContent=--second;if(second<0)location.href='return.html';}</script>4)解决Firefox不支持innerText的问题<spanid="totalSecond">8</span><scriptlanguage="javascript"type="text/javascript">if(navigator.appName.indexOf("Explorer")>-1){document.getElementById('totalSecond').innerText="mytextinnerText";}else{document.getElementById('totalSecond').textContent="mytexttextContent";}</script>5)整合3)和3')<spanid="totalSecond">8</span><scriptlanguage="javascript"type="text/javascript">varsecond=document.getElementById('totalSecond').textContent;if(navigator.appName.indexOf("Explorer")>-1){second=document.getElementById('totalSecond').innerText;}else{second=document.getElementById('totalSecond').textContent;}setInterval("redirect()",1000);functionredirect(){if(second<0){location.href='return.html';}else{if(navigator.appName.indexOf("Explorer")>-1){document.getElementById('totalSecond').innerText=second--;}else{document.getElementById('totalSecond').textContent=second--;}}}</script>不在jsp页面中嵌套java代码片段<html><head><scripttype="text/javascript">functiondelayedRedirect(){window.location=HYPERLINK"http://localhost:8080/redirect/login.jsp"http://localhost:8080/redirect/login.jsp;}</script></head><bodyonLoad="setTimeout('delayedRedirect()',3000)"><h2>3秒钟后将自动跳转到