Tutorial on helping customers (www.bkjia.com)Asp Php Js Html webpage jump code Daquan, please add to the favorites for emergency needs.
<1> three webpage jump codes:
If you want to jump to the server, you can do this:
Response. Redirect (www.bkjia.com)
Response. End
If you want to jump to the client, you can do this:
<Script language = "javascript" type = "text/javascript">
Window. location = "http://www.bkjia.com ";;
</Script>
If you want to jump to the page after several seconds, you can add the following code in the
<Meta http-equiv = "refresh" content = "3; url = http://www.bkjia.com">
The above three are also common, and the commonly used webpage jump code running platform Win9x WinNT Win2000 WinME WinXP.
<2> several simple webpage jump Codes
Do not hide the address after turning
<Html>
<Title> www.bkjia.com </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 = "http://www.bkjia.com ";}
} </SCRIPT>
</P> </form>
</Body>
</Html>
Do not hide the address after turning
<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', ''http: // www.bkjia.com''); return document. returnvalue ">
</Body>
</Html>
Do not hide the address after turning
<Html>
<Script language = "javascript">
<! -- Start Code
Var ver = navigator. appVersion;
If (ver. indexOf ("MSIE ")! =-1)
{
Window. location. href = "http://www.bkjia.com"
} Else
Window. location. href = "http://www.bkjia.com"
// End Code -->
</SCRIPT>
</Html>
Do not hide the address after turning
<Html>
<Body>
<Meta http-equiv = "refresh" content = "0.1; url = http://www.bkjia.com">
</Body>
</Html>
The address after the redirection can be hidden:
<Html>
<Frameset framespacing = "0" border = "0" rows = "0" frameborder = "0">
<Frame name = "main" src = "http://www.bkjia.com" scrolling = "auto" noresize>
</Frameset>
</Html>
<3>
1. Automatically refresh the page: Add the following code to the <Meta http-equiv = "refresh" content = "20">
20 indicates refreshing the page every 20 seconds.
2. automatic page Jump: Add the following code to the <Meta http-equiv = "refresh" content = "20; url = http://www.bkjia.com">
20 means to jump to the http://www.bkjia.com page every 20 seconds.
<Html>
<Head>
<Title> entering http://www.bkjia.com> Loading> </title>
</Head>
<Body bgcolor = "# FFFFFF" text = "#000000">
<P> </p> <tr> <td width = 724>
<P align = center> </p>
<P align = center> <B> <font size = "6"> customer home address: </font> <font color = "red" size = "6"> http://www.bkjia.com
! </Font> </B> </p>
<P align = center> <B> <font size = "6"> entering... please wait. Thank you ...... </font> </B> </p> </td> </tr> <tr>
& Lt; td width = "724" & gt;
<P align = center>
<Form name = loading>
<Div align = center>
<P>
<Input type = text name = chart size = 46 style = "font-family: Arial; font-weight: bolder; color: rgb (124,119,119); background-color: white; padding: 0px; border-style: none; ">
<Br>
<Input type = text name = percent size = 46 style = "color: rgb (138,134,134); text-align: center; border-width: medium; border-style: none; "> <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 ()", 10 );}
Else
{Window. location = "http://www.bkjia.com ";}
} </Script>
</Body>
</Html>
Asp can be used in the following ways:
<%
Response. redirect "http://www.bkjia.com"
%>
- 2 pages in total:
- Previous Page
- 1
- 2
- Next Page