View Single Post
  #1  
Old 03-06-2003, 16:33
ddd sss's Avatar
ddd sss ddd sss is offline
Membre
 
Join Date: 07-12-2002
Location: Lourdes
Age: 53
Posts: 49
rediriger un page selon naviguateur

Salut,
j'ai l'intro de mon site que ne passe pas avec netscape et opéra ( voir forum design web) .
j'ai une solution ici mais cela ne fonctionne qu'avec net scape
voici le script sur ma page : :angry:

<!-- DEBUT DU SCRIPT -->
<SCRIPT LANGUAGE="JavaScript">
/*
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com
*/
nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1);
NavCon = 0;
function Redirige()
{
if(document.all)
{
location.href = "";
NavCon = 1;
}
if (document.getElementById && !document.all)
{
location.href = "acceuil.htm";
NavCon = 1;
}
if (nav == "Mic" && ver <=3)
{
location.href = "";
NavCon = 1;
}
if (nav == "Net" && ver <=3)
{
location.href = "acceuil.htm";
NavCon = 1;
}
if (document.layers)
{
location.href = "acceuil.htm";
NavCon = 1;
}
if (NavCon !=1)
{
location.href = "acceuil.htm";
}
}
Redirige();
</SCRIPT>
<!-- FIN DU SCRIPT -->


y-a-t'il une solution pour opéra
__________________
Un petit regard sur ma réalité dans notre fiction ...
Un grand merci et à bientot
Reply With Quote