网页跳转代码大全
2013年3月29日
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | ------------------------------------------------------------------------------ 不隐藏转向之后的地址 代码一 ------------------------------------------------------------------------------ <html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <title></title> </head> <body> <form name=loading> <P align=center><FONT face=Arial color=#0066ff size=2>loading...</FONT> <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" size=46 name=chart> <BR><INPUT 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> <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 = "将这里改成要转入的网址";} }</SCRIPT> </P></form> </body> </html> ------------------------------------------------------------------------------- 不隐藏转向之后的地址 代码二 ------------------------------------------------------------------------------- <html> <body> <script language="javascript"> <!-- function goToURL() { //v2.0 for (var i=0; i< (goToURL.arguments.length - 1); i+=2) //with arg pairs eval(goToURL.arguments+".location='"+goToURL.arguments[i+1]+"'"); document.returnvalue = false; } //--> </script> <body bgcolor="#FFFFFF" onLoad="goToURL('parent','将这里改成要转入的网址');return document.returnvalue"> </body> </html> - ------------------------------------------------------------------------------ 不隐藏转向之后的地址 代码三 ------------------------------------------------------------------------------- <html> <head> <meta http-equiv="Content-Language" content="zh-CN"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <title></title> </head> <SCRIPT LANGUAGE="javascript"> <!-- Start Code var ver = navigator.appVersion; if (ver.indexOf("MSIE") != -1) { window.location.href="将这里改成要转入的网址" }else window.location.href="将这里改成要转入的网址" // End Code --> </SCRIPT> </html> ------------------------------------------------------------------------------- 不隐藏转向之后的地址 代码四 ------------------------------------------------------------------------------- <html> <head> <meta http-equiv="Content-Language" content="zh-CN"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <title></title> </head> <body> <meta http-equiv="refresh" content="0.1;url=将这里改成要转入的网址"> </body> </html> ------------------------------------------------------------------------------- 可隐藏转向之后的地址 ------------------------------------------------------------------------------- <html> <head> <meta http-equiv="Content-Language" content="zh-CN"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <title></title> </head> <frameset framespacing="0" border="0" rows="0" frameborder="0"> <frame name="main" src="将这里改成要转入的网址" scrolling="auto" noresize> </frameset> </html> 透明Flash的设置 ++++++++++++++++++++++++++++++++++++++++++++++++++ 主要是在Flash代码段中插入这一语句:<param name=wmode value=transparent>,请看以下实例: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%"> <param name="movie" value="../images/hudie.swf"> <param name="quality" value="high"> <param name=wmode value=transparent> <!--这个代码表示背景透明--!> <embed src="../images/hudie.swf" width="100%" height="100%" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> |