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.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Browse r detection</Title>
<Script Language="JavaS cript">
// Browserdetectio nscript made by Henrik Petersen / NetKontoret
// Script explained at www.echoecho.co m/javascript.htm
// Please do not remove this and the two lines above.
// Detect the browsername
browsername=nav igator.appName;
{if (browsername.in dexOf("Microsof t")!=-1) {browsername="M SIE"}
else {browsername="N/A"}};
//detect the browserversion
browserversion= "7";
if (navigator.appV ersion.indexOf( "3.")!=-1) {browserversion ="3"};
if (navigator.appV ersion.indexOf( "4.")!=-1) {browserversion ="4"};
if (navigator.appV ersion.indexOf( "5.")!=-1) {browserversion ="5"};
if (navigator.appV ersion.indexOf( "6.")!=-1) {browserversion ="6"};
// Send visitor to relevant pages
if (browsername==" MSIE")
{
if (browserversion <7){window.loca tion="http://www.earlyflute. com/earlyflutenew6/index.html"}
else {window.locatio n="http://www.earlyflute. com/earlyflutenew7/index.html"}
}
if (browsername==" N/A") {window.locatio n="http://www.earlyflute. com/earlyflutenew7/index.html"};
</script>
</head>
</body>
</html>
[/HTML]
Regards,
Simon