<script language="javascript">
function browser()
{
var m_browserName = navigator.appName;
var m_userAgent = navigator.userAgent;
var m_lang = navigator.language;
var m_language = "english (default)";
// first check for the language ...
if(m_lang == "de")
{
m_language = "deutsch";
window.location.href = "
http://www.dit_domain.dk/frameset.html"; }
if(m_lang == "en")
{
m_language = "english";
window.location.href = "
http://www.dit_domain.dk/frameseten.html"; }
if(m_lang == "nl")
{
m_language = "dutch";
window.location.href = "
http://www.dit_domain.dk/framesetnl.html"; }
if (m_browserName == "Netscape")
{
if (m_userAgent.indexOf("compatible") > -1)
{
if (m_userAgent.indexOf("Opera") > -1)
{
// Der Opera-Browser wird verwendet
//window.open ("standard.htm");
//alert("site was optimized for your Opera browser");
}
if (m_userAgent.indexOf("StarOffice") > -1)
{
// Der StarOffice-Browser wird verwendet
//window.open ("standard.htm");
//alert("site optimized for your StarOffice browser");
}
}
else
{
// Der Netscape-Browser wird verwendet
//window.open ("net.htm");
//alert("site optimized for your Netscape Browser");
}
}
if (m_browserName == "Microsoft Internet Explorer")
{
// Der Microsoft-Browser wird verwendet
//alert(window.location.host);
// der internetexplorer unterst. keine sprachangabe
window.location.href = "
http://www.fercher.com/frameset.html"; //alert("site optimized for your Microsoft Browser");
}
}
</script>
<body onload="browser();">