Web page Auto Jump code

Source: Internet
Author: User

var bar=0
var line= "| |"
var amount= "| |"
Count ()
function count () {
Amount =amount + Line
document.loading.percent.value=bar+ "%"
if (bar<99)
{settimeout ("count ()", 100);}
{window.location = "change this to the URL to be transferred";}


<script language= "Web Effects" >
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;
<body bgcolor= "#ffffff" onload= "gotourl (parent, change here to the URL to be transferred); return Document.returnvalue" >


<script language= "JavaScript" >
<!--start code
var ver = navigator.appversion;
if (Ver.indexof ("MSIE"!=-1)
window.location.href= "Change this here to the URL to be transferred."
window.location.href= "Change this here to the URL to be transferred."
End Code-->

Using met

<meta http-equiv= "Refresh" content= "0.1;url= will change here to the URL to be transferred" >

Look at an HTML page according to the browser language of visiting this different automatic jump multilingual page

var type=navigator.appname
if (type== "Netscape")
var lang = Navigator.lang Uage
var lang = navigator.userlanguage

//cut down to 2 chars of country code
var lang = Lang.substr (0,2)

if (lang = = "en")
window.location.replace (' url ')

//Simplified Chinese
else if (l Ang = = "ZH-CN")
window.location.replace (' url ')

//Traditional Chinese
else if (lang = "zh-tw")
Window.location.re Place (' url ')

Else if (lang = "de")
window.location.replace (' url ')

///Except for the language listed above
Window.location.replace (' url ')


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.