MyEspinda! .Customers Login Here

Redirection Scripts

Some Java scripts used to redirect the user to the page that is suitable for his browser or to a page that you specify.

Features :
- Depends on browser brand and version.
- Client side script doesn't need an external program and can be tested offline on your computer.

Customization :
You can put as many scripts as you want to redirect to more than 2 pages.

Installation :
Copy the code in the HTML <head> or ASP <head> tags and change the alternate pages URLs

Redirect Netscape users to "test2.html" page :

<script><!--
var skipPage = true; bAgent = window.navigator.userAgent; bAppName = window.navigator.appName;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/2") >= 0)) skipPage = false;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0)) skipPage = false;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/4") >= 0)) skipPage = false;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/5") >= 0)) skipPage = false;
if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/6") >= 0)) skipPage = false;
if (skipPage) { location = /*URL*/'test2.html'; }
// --></script>


Redirect Explorer users to "test2.html" page :

<script><!--
var skipPage = true; bAgent = window.navigator.userAgent; bAppName = window.navigator.appName;
if ((bAppName.indexOf("Netscape") >= 0) && (bAgent.indexOf("Mozilla/2") >= 0)) skipPage = false;
if ((bAppName.indexOf("Netscape") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0)) skipPage = false;
if ((bAppName.indexOf("Netscape") >= 0) && (bAgent.indexOf("Mozilla/4") >= 0)) skipPage = false;
if ((bAppName.indexOf("Netscape") >= 0) && (bAgent.indexOf("Mozilla/5") >= 0)) skipPage = false;
if ((bAppName.indexOf("Netscape") >= 0) && (bAgent.indexOf("Mozilla/6") >= 0)) skipPage = false;
if (skipPage) { location = /*URL*/'test2.html'; }
// --></script>


Redirect Explorer users to "test2.html" page :

<html>
<script language="JavaScript">
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
width = screen.width;
</script>
<body bgcolor="white" text="#ffcc63" link="#ffcc63" onload="window.location.href='http://fritomatik.belgoweb.com'">
<center>
<font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" size="2" color="#ff7934"></a> </font></center>
</body>
</html>

Home|About Espinda|Hosting Plans|Tools|FAQ|Contact|Support|Terms of Service|Site Map|Order