Page jump through common JavaScript in Web Development

Source: Internet
Author: User

License:

<INPUT name = "pclog" type = "button" value = "/GO" onClick = "location. href = 'HTTP: // game.unimagic.cn '">

Link:

<A href = "javascript: history. go (-1)"> return to the previous step. </a>

<A href = "<% = Request. ServerVariables (" HTTP_REFERER ") %>"> return to the previous step </a>

Direct jump:

<Script> window. location. href = 'HTTP: // game.unimagic.cn '; </script>

Open a new window:

<A href = "/javascript:" onClick = "window. open (http://game.unimagic.cn ', '', 'height = 500, width = 611, scrollbars = yes, status = yes')"> Training </a>

Page Jump code collection

1 <meta http-equiv = "refresh" content = "seconds; url = next page">

2
<Script language = "JavaScript">
<! --
Var userAgent = navigator. userAgent;
Var MSIEIndex = userAgent. indexOf ("MSIE ");
If (userAgent. indexOf ("Win ")! =-1 &&
UserAgent. indexOf ("MSIE ")! =-1 &&
UserAgent. substring (MSIEIndex + 5), (MSIEIndex + 8)> = 5.5)
Window. location. replace ("http://game.unimagic.cn ");
// -->
</Script>

No Time Transfer
3
When you want to access a website, you can directly access a file in a subdirectory, such as cgi-bin/leoboard.cgi. at this time, you only need to write a first-page file such as index.htm. The content is as follows to meet your requirements.
Method 1:

<Html>
<Head>
<Title> webpage jump </title>
<Meta http-equiv = "refresh" content = "0; url = cgi-bin/leoboard. cgi">
</Head>
<Body>
</Body>
</Html>

Method 2
<Html>
<Head>
<Title> entering >>> Loading >></title>
</Head>
<Body bgcolor = "# FFFFFF" text = "#000000">
<P> </p> <tr> <td width = 724>
<P align = center> <font color = "red" size = "2"> entering... please wait. Thank you ...... </font> </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://game.unimagic.cn ";}
} </Script>

</Body>
</Html>
Font: large, medium, and small

Jump code --

Google ranking FAQ: page Jump

SEO jump code
1:
<Script language = "j avascript">
Location. replace ("http: // www. ***. com ")
</Script>

2:
<Script language = "j avasout"> setTimeout (window. location = "http://game.unimagic.cn", 0)
</Script>

3:
<Script language = "JavaScript">
BName = navigator. appName;
If (bName = "Netscape") |
(BName = "Microsoft Internet Explorer") window. location = http://www.dinmo.net;
</Script>

<FRAMESET rows = '*'>
<FRAMESET cols = '*'>
<Frame src = 'HTTP: // game.unimagic.cn '>
<Noframes>

JS redirection code _ multiple domain names direct to the same space

<Script> try {if (self. location = "http: // maize 1 /"){
Top. location. href = "http: // corn I/directory ";
}
Else if (self. location = "http: // /"){
Top. location. href = "http: // corn 2/directory ";
}
Else if (self. location = "http: // corn 3 /"){
Top. location. href = "http: // corn 3/directory ";
}
Else if (self. location = "http: // corn 4 /"){
Top. location. href = "http: // corn 4/directory ";
}
Else {document. write ("incorrect access address") }}catch (e) {}</script>

 

 

 

 

<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> Loading </title>
</Head>

<Body>

<Form name = "loading">

<P align = "center"> redirecting... please wait </p>

<P align = "center">
<Input type = "text" name = "bar" style = "border-style: none; background-color: # D3E8D0; font-weight: bold"/>
<Input type = "text" name = "percentage" style = "border-style: none; background-color: # FFFFFF; max-width: 30px"/>
</P>

<P align = "center">
If your browser does not support redirection, click <a href = "http://game.unimagic.cn"> here </a> to manually redirect
</P>

<Script language = "javascript" type = "text/javascript">
Var percent = 0; // percentage progress, which is displayed after the scroll bar
Var element = "|"; // the vertical line of the scroll bar unit.
Var elements = "|"; // The current vertical bar of the scroll bar
Count (); // start the call Loop

Function count (){
Percent = percent + 10; // The percentage increases by 10 each time
Elements = elements + element; // Add a scroll bar unit vertical line to the current vertical line of the scroll bar.
Document. loading. bar. value = elements; // you can specify the current value of the bar element in the form loading.
Document. loading. percentage. value = percent + "%"; // you can specify the current value of the percentage element in the form loading.
If (percent <99) {// if percent is smaller than 99, the loop continues.
SetTimeout ("count ()", 500); // count () Every 500ms ()
}
Else {
Window. location = "http://game.unimagic.cn"; // jump when percent reaches 100
}
}
</Script>

</Form>
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.