首页 html-三种网页跳转代码(可编辑)

html-三种网页跳转代码(可编辑)

举报
开通vip

html-三种网页跳转代码(可编辑)html-三种网页跳转代码(可编辑) html-三种网页跳转代码 一三种网页跳转代码: 如果你要在服务器端跳转,可以这样: Response.Redirect////0>. Response.End 如果你要在客户端跳转,可以这样: script language"javascript" type"text/javascript" window.location" ////.";; 如果你要让页面显示几秒钟之后跳转,可以在html代码的部分 加上这样的代码: meta http-equiv"ref...

html-三种网页跳转代码(可编辑)
html-三种网页跳转代码(可编辑) html-三种网页跳转代码 一三种网页跳转代码: 如果你要在服务器端跳转,可以这样: Response.Redirect////0>. Response.End 如果你要在客户端跳转,可以这样: script language"javascript" type"text/javascript" window.location" ////.";; 如果你要让页面显示几秒钟之后跳转,可以在html代码的部分 加上这样的代码: meta http-equiv"refresh" content"3; url////. (3秒钟后自动跳转到////. 以上三种是也比较常见,比较常用的网页跳转代码运行平台 Win9x WinNT Win2000 WinME WinXP。 二 几段简单的网页跳转代码 不隐藏转向之后的地址 代码一:form nameloading P aligncenterFONT faceArial color#0066ff size2loading INPUT 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" size46 namechart INPUT style"BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center" size47 namepercentvar bar0 var line"||" var amount"||" count function count barbar+2 amount amount + line //.rt.valueamount //.cent.valuebar+"%" if bar99 setTimeout"count",100; else window.location "将这里改成要转入的网址"; 不隐藏转向之后的地址 代码二:script language"javascript" !-- function goToURL //v2.0 for var i0; i //.gth - 1; i+2 //with arg pairs evalgoToURL.arguments+".location''"+goToURL.arguments[i +1]+"''"; document.returnvalue false; //-- body bgcolor"#FFFFFF" onLoad"goToURL''parent'',''将这里 改成要转入的网址'';return document.returnvalue" 不隐藏转向之后的地址 代码三: SCRIPT LANGUAGE"javascript" !-- Start Code var ver navigator.appVersion; if ver.indexOf"MSIE" ! -1 //.f"将这里改成要转入的网址" else //.f"将这里改成要转入的网址" // End Code -- 不隐藏转向之后的地址 代码四:meta http-equiv"refresh" content"0.1;url将这里改成要转入的网址" 可隐藏转向之后的地址: frameset framespacing"0" border"0" rows"0" frameborder"0" frame name"main" src"将这里改成要转入的网址" scrolling"auto" noresize 三 网页跳转 meta http-equiv"refresh" content"3;rul跳转的网页" 此代码可以让网页在一定的时间内,跳转到另外一个网页上,其中content" 为跳转前停暂的秒数,rul 为跳转的网址 meta http-equiv"refresh" content"3;rul跳转的网页" 此代码可以让网页在一定的时间内,跳转到另外一个网页上,其中content" 为跳转前停暂的秒数,rul 为跳转的网址 网页跳转 meta http-equiv"refresh" content"0;urlcgi-bin/leoboard.cgi" 1,页面自动刷新:把如下代码加入区域中meta http-equiv"refresh" content"20",其中20指每隔20秒刷新一次页面. 2,页面自动跳转:把如下代码加入区域中meta http-equiv"refresh" content"20;url////. 正在进入 Loadingbody bgcolor"#FFFFFF" text"#000000"td width724 p aligncenterfont color"red" size"2"正在进入,请等待,谢谢 td width"724" p aligncenter form nameloading div aligncenter input typetext namechart size46 style"font-family:Arial; font-weight:bolder; color:rgb124,119,119; background-color:white; padding:0px; border-style:none;" input typetext namepercent size46 style"color:rgb138,134,134; text-align:center; border-width:medium; border-style:none;"var bar 0 var line "||" var amount "||" count function count bar bar+2 amount amount + line //.rt.valueamount //.cent.valuebar+"%" if bar99 setTimeout"count",10; else window.location "////. 如果要cgi的文件,可以用以下方式: #!/usr/bin/perl print "Content-type:text/html "; printEND;正在进入 ////. Loadingbody bgcolor"#FFFFFF" text"#000000"td width724 p aligncenter p aligncenterfont size"6"论坛新地址:font color"red" size"6" ////. ! p aligncenterfont size"6"正在进入,请等待,谢谢 td width"724" p aligncenter form nameloading div aligncenter input typetext namechart size46 style"font-family:Arial; font-weight:bolder; color:rgb124,119,119; background-color:white; padding:0px; border-style:none;" input typetext namepercent size46 style"color:rgb138,134,134; text-align:center; border-width:medium; border-style:none;" var bar 0 var line "||" var amount "||" count function count bar bar+2 amount amount + line //.rt.valueamount //.cent.valuebar+"%" if bar99 setTimeout"count",10; else window.location "////. END exit; 以 htm 可以用以下方式:script language'javascript'document.location '////. 以 asp 可以用以下方式: % response.redirect "////. % 四1. 在区域加入 代码: meta http-equivPragma contentno-cache Meta http-equiv"refresh" content"3;url'////. " 2. JavaScript 代码: SCRIPT LANGUAGE"JavaScript" !-- Begin redirTime "3000"; redirURL "////. function redirTimer self.setTimeout"//.f redirURL;",redirTime; // End -- body onLoad"redirTimer" 3. JavaScript 代码: 稍候。。。 script language'javascript'document.location '跳转地址 '4. 带进度条的页面跳转代码 代码:meta http-equiv"Content-Language" content"zh-cn" meta HTTP-EQUIV"Content-Type" CONTENT"text/html; charsetgb2312" 新视听资源共享论坛form nameloading P aligncenterFONT faceArial color#0066ff size2loading INPUT 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" size46 namechart INPUT style"BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; COLOR: #0066ff; BORDER-BOTTOM: medium none; TEXT-ALIGN: center" size47 namepercent var bar0 var line"||" var amount"||" count function count barbar+2 amount amount + line //.rt.valueamount //.cent.valuebar+"%" if bar99 setTimeout"count",100; else window.location "////. 五 网页跳转方法+代码 1. window.location body onloadwindow.location"////. 或(此法应用范围较广,并可应用在一般后台编辑器中) window.location"////. 2. META标志 META HTTP-EQUIVrefresh content"0; url////. //其中content后面的阿拉伯数字是代 关于同志近三年现实表现材料材料类招标技术评分表图表与交易pdf视力表打印pdf用图表说话 pdf 过几秒中钟转入目标 网页。 3. 利用框架隐藏转向地址(此方法不便用 dreamweaver 编辑, 请使用记事本或其他文本编辑器处理)meta http-equiv"Content-Type" content"text/html; charsetgb2312" 知觅__朱高站 frameset rows"*,0" frameborder"no" border"0" framespacing"0" frame src"////. name"mainFrame" id"mainFrame" frame src"" name"bottomFrame" scrolling"No" noresize"noresize" id"bottomFrame" 请用IE浏览 六 页面跳转 meta http-equiv"refresh" content"3;url////.此页面三秒后 跳转到////. 七html中跳转最全代码 程序代码meta name"GENERATOR" content"Microsoft FrontPage 5.0" meta name"ProgId" content"//.ument" meta http-equiv"Content-Type" content"text/html; charsetgb2312" 正在进入form nameloadingp aligncenter font color"#0066ff" size"2"正在进入,请稍等font color"#0066ff" size"2" face"Arial"input typetext namechart size46 style"font-family:Arial; font-weight:bolder; color:#0066ff; background-color:#fef4d9; padding:0px; border-style:none;" input typetext namepercent size47 style"color:#0066ff; text-align:center; border-width:medium; border-style:none;" var bar0var line"||"var amount"||"countfunction countbarbar+2amount amount + //.//.//.uebar+"%"if bar99setTimeout"count",100;elsewindow.location "////. p align"center" 如果您的浏览器不支持跳转,a style"text-decoration: none" href"////. color"#FF0000"请点这 里 一个弹出窗口的代码 SCRIPT LANGUAGE"javascript" window.open '////. 'newwindow', 'height400, width500, top0, left0, toolbarno, menubarno, scrollbarsno, resizableno,locationno, statusno' 浮动广告代码var imagepath"////. //这里是浮动图片的地址 var imagewidth171 //这两行写图片的大小 var imageheight133 var speed3; var imageclick"////. //这里写点击图片连接到的地址 var hideafter0 var isie0; //.Name"Microsoft Internet Explorer"&&//.//.//.exOf"MSIE"+5,//.Version.indexOf"MSIE"+8 5.5 isie1; else isie0; ifisie var preloaditnew Image preloadit.srcimagepath function pop ifisie xx+dx;yy+dy; oPopup.showx, y, imagewidth, imageheight; ifx+imagewidth+5screen.width dx-dx; ify+imageheight+5screen.height dy-dy; ifx0 dx-dx; ify0 dy-dy; startanisetTimeout"pop;",50; function dismisspopup clearTimeoutstartani oPopup.hide function dowhat if imageclick"dismiss" dismisspopup else window.openimageclick; ifisie var x0,y0,dxspeed,dyspeed; var oPopup window.createPopup; var oPopupBody //.y; //.sor"hand" oPopupBody.innerHTML 'IMG SRC"'+preloadit.src+'"'; //.y.onmouseovernew Function"clearTimeoutstartani" //.y.onmouseoutpop //.y.onclickdowhat pop; if hideafter0 setTimeout"dismisspopup",hideafter*1000 回答者: Temc
本文档为【html-三种网页跳转代码(可编辑)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_977556
暂无简介~
格式:doc
大小:33KB
软件:Word
页数:12
分类:互联网
上传时间:2017-10-01
浏览量:90