Le forum
Vous n'êtes pas identifié.
Salut, pouvez-vous m'aider à correcter ce script?
<head><script language=javascript>
function main(){
if(platform == 'Linux') && (navigator.appName == 'Konqueror'){location.src = 'index.html'};
if(platform == 'Linux') && (navigator.appName == 'Mozilla'){location.src = 'index-mz.html'};
if(platform == 'Linux') && (navigator.appName == 'Firefox'){location.src = 'index-mz.html'};
if(platform == 'Windows') && (navigator.appName == 'Mozilla'){location.src = 'index-mz.html'};
if(platform == 'Windows') && (navigator.appName == 'Firefox'){location.src = 'index.html'};
if(platform == 'Windows') && (navigator.appName == 'Microsoft Internet Explorer'){location.src = 'index-ie.html'}}
</script></head>
<body onload='main()'></body>
Hors ligne
Je l'ai résolu tout seul pas besoin de votre aide!
<head><script language=javascript>
var url = "index";
var url2 = "index-mz";
var url3 = "index-ie";
var url4 = "index-2";
if(navigator.appName != 'Konqueror' || navigator.appName != 'Mozilla' || navigator.appName != 'MSIE'){window.location.replace(url4)};
if(navigator.appName == 'Konqueror'){window.location.replace(url)};
if(navigator.appName == 'Mozilla'){window.location.replace(url2)};
if(navigator.appName == 'MSIE'){window.location.replace(url3)};
</script>
</head>
<body>...</body>
Hors ligne