sorry, I put the original text instead of my changed one in the previous mail sorry
hello,
I am new to this forum and a laymen. I have awebsite www.earlyflute.com. I make baroque flutes as you can see there. I renewed my site recently using ap div s and dreamweaver in a template and css to get away from my fifteen yr old frontpage one. However it did not work with IE6 as you probably know. So I made a second version for IE6 and tried to use the browser detection java script shown below. As long as the browser is not IE I get the right version earlyflutenew7, but for IE7 I get version earlyflutenew6 and sometimes it seems from the web statistics that users get the 7 one for IE6. I dont understand it. Please, thisi important for me could somebody solve it????
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Browser detection</Title>
<Script Language="JavaScript">
// Browserdetectionscript made by Henrik Petersen / NetKontoret
// Script explained at www.echoecho.com/javascript.htm
// Please do not remove this and the two lines above.
// Detect the browsername
browsername=navigator.appName;
{if (browsername.indexOf("Microsoft")!=-1) {browsername="MSIE"}
else {browsername="N/A"}};
//detect the browserversion
browserversion="7";
if (navigator.appVersion.indexOf("3.")!=-1) {browserversion="3"};
if (navigator.appVersion.indexOf("4.")!=-1) {browserversion="4"};
if (navigator.appVersion.indexOf("5.")!=-1) {browserversion="5"};
if (navigator.appVersion.indexOf("6.")!=-1) {browserversion="6"};
// Send visitor to relevant pages
if (browsername=="MSIE")
{
if (browserversion<7){window.location="http://www.earlyflute.com/earlyflutenew6/index.html"}
else {window.location="http://www.earlyflute.com/earlyflutenew7/index.html"}
}
if (browsername=="N/A") {window.location="http://www.earlyflute.com/earlyflutenew7/index.html"};
</script>
</head>
</body>
</html>
[/HTML]
Regards,
Simon