html的5种页面跳转方式

html的5种页面跳转方式

ID:17305234

大小:30.50 KB

页数:4页

时间:2018-08-29

html的5种页面跳转方式_第1页
html的5种页面跳转方式_第2页
html的5种页面跳转方式_第3页
html的5种页面跳转方式_第4页
资源描述:

《html的5种页面跳转方式》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、HTML页面跳转的5种方法下面列了五个例子来详细说明,这几个例子的主要功能是:在5秒后,自动跳转到同目录下的hello.html(根据自己需要自行修改)文件。1)html的实现 ?123456 优点:简单缺点:StrutsT

2、iles中无法使用 2)javascript的实现 ?123456 //以下方式直接跳转window.location.href='hello.html';//以下方式定时跳转setTimeout("javascript:location.href='hello.html'",5000); he"governingforthepeople","Nomattertheinterestsofthemasses"c

3、onceptunderstandingisnotinplace.Thespecificworktreatswiththedeployment,afewleadingcadrescomplainthatworkistoocomplicated,toomuchresponsibility,thepressureistoolarge,toomuchemphasisonthedifficultyofthework.Forexample,noncoalmine优点:灵活,可以结合更多的其他功能缺点:受

4、到不同浏览器的影响3)结合了倒数的javascript实现(IE) ?1234567895 varsecond=totalSecond.innerText; setInterval("redirect()",1000); functionredirect(){ totalSecond.innerText=--second; if(second<0)lo

5、cation.href='hello.html'; } 优点:更人性化缺点:firefox不支持(firefox不支持span、div等的innerText属性)3')结合了倒数的javascript实现(firefox)?12345678 varsecond=document.getElementById('totalSecond').textContent; setInterval("r

6、edirect()",1000); functionredirect() { document.getElementById('totalSecond').textContent=--second; if(second<0)location.href='hello.html'; } he"governingforthepeople","Nomattertheinterestsofthemasses"conceptunderstandingisnotinplace.Thespecificworktreatswi

7、ththedeployment,afewleadingcadrescomplainthatworkistoocomplicated,toomuchresponsibility,thepressureistoolarge,toomuchemphasisonthedifficultyofthework.Forexample,noncoalmine94)解决Firefox不支持innerText的问题?123456785

8、guage="javascript"type="text/javascript"> if(navigator.appName.indexOf("Explorer")>-1){ document.getElementById('totalSecond').innerText="mytextinnerText"; }else{ document.getElementById('totalSecond')

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。