
More JavaScript Userdetails
User Browser Details | Visitors Browser | Browser Information | Browser Version Details | Netscape Opera Info | Version Redirect | CSS Redirect | Java Enabled Redirect | What JavaScript Version | Language Redirect | Come From Page | Mac Or Windows | Show Referrer | Safe Colors | Simple Infomation Line | CSS By Resolution | Browser Settings
Description
Redirects a user to the page based on their language. For example, English language user browsers, which report the language as 'en' in most cases, can be redirected to an English page, while Spanish language user browser, which report the language as 'es' in most cases, can be sent to a separate Spanish page. This method works well for redirecting users in all the languages that you set up. Instructions on adding more languages are included in the source code....View A Script Demo
Redirects a user to the page based on their language. For example, English language user browsers, which report the language as 'en' in most cases, can be redirected to an English page, while Spanish language user browser, which report the language as 'es' in most cases, can be sent to a separate Spanish page. This method works well for redirecting users in all the languages that you set up. Instructions on adding more languages are included in the source code....View A Script Demo
Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR><BR><BR>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
/*-------------------------------------------------------------
Netscape instructions:
In Netscape, find the language you want to redirect by going to
Edit Menu --> Preferences...
Then click the '+' box next to 'Navigator' and click 'Languages'
Click 'Add' then find the languages you want and add them below.
---------------------------------------------------------------
Microsoft Internet Explorer instructions:
In MSIE, find the language you want to redirect by going to
Tools Menu --> Internet Options...
Then click the 'Languages' button near the bottom of the page.
Click 'Add' then find the languages you want and add them below.
-------------------------------------------------------------*/
if (language.indexOf('en') > -1) alert('You would have been taken to the English page.');
else if (language.indexOf('nl') > -1) alert('You would have been taken to the dutch page.');
else if (language.indexOf('fr') > -1) alert('You would have been taken to the french page.');
else if (language.indexOf('de') > -1) alert('You would have been taken to the german page.');
else if (language.indexOf('ja') > -1) alert('You would have been taken to the japanese page.');
else if (language.indexOf('it') > -1) alert('You would have been taken to the italian page.');
else if (language.indexOf('pt') > -1) alert('You would have been taken to the portuguese page.');
else if (language.indexOf('es') > -1) alert('You would have been taken to the Spanish page.');
else if (language.indexOf('sv') > -1) alert('You would have been taken to the swedish page.');
else if (language.indexOf('zh') > -1) alert('You would have been taken to the chinese page.');
else
alert('You would have been taken to the default English page. Your language was not set up.');
document.write("<br><br>Your language was reported as: " + language);
// End -->
</script>
</center>
</BODY>
</HTML>
<HTML>
<HEAD>
<LINK href="general.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY Background=../graphics/grayback.jpg>
<center><BR><BR><BR>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
/*-------------------------------------------------------------
Netscape instructions:
In Netscape, find the language you want to redirect by going to
Edit Menu --> Preferences...
Then click the '+' box next to 'Navigator' and click 'Languages'
Click 'Add' then find the languages you want and add them below.
---------------------------------------------------------------
Microsoft Internet Explorer instructions:
In MSIE, find the language you want to redirect by going to
Tools Menu --> Internet Options...
Then click the 'Languages' button near the bottom of the page.
Click 'Add' then find the languages you want and add them below.
-------------------------------------------------------------*/
if (language.indexOf('en') > -1) alert('You would have been taken to the English page.');
else if (language.indexOf('nl') > -1) alert('You would have been taken to the dutch page.');
else if (language.indexOf('fr') > -1) alert('You would have been taken to the french page.');
else if (language.indexOf('de') > -1) alert('You would have been taken to the german page.');
else if (language.indexOf('ja') > -1) alert('You would have been taken to the japanese page.');
else if (language.indexOf('it') > -1) alert('You would have been taken to the italian page.');
else if (language.indexOf('pt') > -1) alert('You would have been taken to the portuguese page.');
else if (language.indexOf('es') > -1) alert('You would have been taken to the Spanish page.');
else if (language.indexOf('sv') > -1) alert('You would have been taken to the swedish page.');
else if (language.indexOf('zh') > -1) alert('You would have been taken to the chinese page.');
else
alert('You would have been taken to the default English page. Your language was not set up.');
document.write("<br><br>Your language was reported as: " + language);
// End -->
</script>
</center>
</BODY>
</HTML>
If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail

