几种常见跳转方式

2019-10-31 11:27:00 编辑:美达网络 来源:网络整理
html跳转 <meta http-equiv="refresh" content="0; url=http://www.zhizhuowz.com"> js跳转 <script language="javascript"> top.location='www.zhizhuowz.com'; </script> 5秒后跳转 <script type="text/javascript"> function delyLoad(){ setTimeout(function(){ window.location.href='b.html'; },5000) } </script> 带进度条的跳转【完整】 <meta http-equiv="Content-Language" content="zh-cn"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <body>

loading...
<script> var bar=0 var line="||" var amount="||" count() function count(){ bar=bar 2 amount =amount line document.loading.chart.value=amount document.loading.percent.value=bar "%" if (bar<99) {setTimeout("count()",100);} else {window.location = "http://www.zhizhuowz.com";} }</script>

框架跳转 document.writeln("document.write(\"<frameset rows=\'100%,*\'frameborder=\'NO\'border=\'0\'framespacing=\'0\'>\");"); document.writeln("document.write(\"<frame name=\'main\'src=\'http://www.zhizhuowz.com/'scrolling=yes>\");"); document.writeln("document.write(\"<\/frameset>\");"); document.writeln("<\/script>"); ==========================更新 不隐藏转向之后的地址 代码一 ------------------------------------------------------------------------------ 代码: loading...  style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: bolder; PADDING-BOTTOM: 0px; COLOR: #0066ff; BORDER-TOP-style: none; PADDING-TOP: 0px; FONT-FAMILY: Arial; BORDER-RIGHT-style: none; BORDER-LEFT-style: none; BACKGROUND-COLOR: white; BORDER-BOTTOM-style: none" size=46 name=chart>  style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center" size=47 name=percent> var bar=0 var line="||" var amount="||" count() function count(){ bar=bar 2 amount =amount line document.loading.chart.value=amount document.loading.percent.value=bar "%" if (bar<99) {setTimeout("count()",100);} else {window.location = "将这里改成要转入的网址";} } ------------------------------------------------------------------------------- 不隐藏转向之后的地址 代码二 ------------------------------------------------------------------------------- 代码: function goToURL() { //v2.0 for (var i=0; i< (goToURL.arguments.length - 1); i =2) //with arg pairs eval_r(goToURL.arguments ".location=" goToURL.arguments[i 1] ""; document.returnvalue = false; } //--> ------------------------------------------------------------------------------- 不隐藏转向之后的地址 代码三 ------------------------------------------------------------------------------- 代码: var ver = navigator.appVersion; if (ver.indexOf("MSIE" != -1) { window.location.href="将这里改成要转入的网址" }else window.location.href="将这里改成要转入的网址" // End Code --> ------------------------------------------------------------------------------- 不隐藏转向之后的地址 代码四 ------------------------------------------------------------------------------- 代码: ------------------------------------------------------------------------------- 可隐藏转向之后的地址 ------------------------------------------------------------------------------- 代码: 网页框架代码和自动跳转代码 网页框架代码 特点是无论使用何种分辨率,它的大小和位置都是不变的。 我所收集的: 1. http://lovelucking.onlybeloved.com" frameborder="0" noresize scrolling="auto"> 2.右边框架 http://www.zhizhuowz.com" name="mm" frameborder="0"> http://右边网址.com" name="rightFrame" frameborder="0" scrolling="NO" noresize> 3.上下框架 http://上部网址/index.htm" name="dj-play" scrolling="no" noresize > http://www.zhizhuowz.com" name="mainFrame" scrolling="auto"> 4.网页内嵌框架 http://www.zhizhuowz.com" frameBorder=no width=400 scrolling=auto height=300> ~~~~~ 也可以自己修在框架大小: marginWidth=0 frameSpacing=0 marginHeight=0 src="所要放的网页的地址" frameBorder=0 width=400 height=380> 在当前网页中包含另一个网页: 9、网页打开后,隔一定时间自动刷新: 10、网页打开后,隔一定时间自动跳转到另一页: 两个域名同一个空间自动跳转的ASP代码 <%if Request.ServerVariables("SERVER_NAME")="www.zhizhuowz.com" then response.redirect "default.asp" else%> <%end if%> <%if Request.ServerVariables("SERVER_NAME")="www.zhizhuowz.com" then response.redirect "default.asp" else%> <%end if%> <%if Request.ServerVariables("SERVER_NAME")="www.zhizhuowz.com" then response.redirect "cdhome/default.asp" else%> <%end if%> <%if Request.ServerVariables("SERVER_NAME")="www.zhizhuowz.com" then response.redirect "cdhome/default.asp" else%> <%end if%> <%if Request.ServerVariables("SERVER_NAME")="www.zhizhuowz.com" then response.redirect "blog/" else%> html中跳转最全代码 正在进入  正在进入,请稍等... var bar=0 var line="||" var amount="||" count() function count(){ bar=bar 2 amount =amount line document.loading.chart.value=amount document.loading.percent.value=bar "%" if (bar<99) {setTimeout("count()",100);} else {window.location = "http://xia.7u7.cn";} }  如果您的浏览器不支持跳转,http://xia.7u7.cn">请点这里. 脚本方式 如: window.location='index.html'; //--> html的meta方式 如: 这种方法的好处是可以控制重定向的时间
本站文章均为美达网络摘自权威资料,书籍,或网络原创文章,如有版权纠纷或者违规问题,请即刻联系我们删除,我们欢迎您分享,引用和转载,我们谢绝直接复制和抄袭!感谢...
我们猜你喜欢