nicolasdu83 a écrit :
Je voulais afficher une image, avec un lien Si le client n'a pas firefox comme navigateur... Le truc c'est que sa marche pas...
sa donne :
|
C'est stupide, il existe de très bon navigateurs qui ne sont pas Firefox
Citation :
<SCRIPT language="Javascript">
var Nom = navigator.appName;
if (var Nom != 'Netscape') {
document.write(<p align="center"><a href="http://www.mozilla-europe.org/fr/products/firefox/"><img src="getfirefox.png"></a></p> )
};
</script>
|
Et ta méthode de test est naze.
Si tu veux inciter les utilisateurs de MS Internet Explorer, le plus simple est d'utiliser les "conditional comments" mis à ta disposition par les gens de chez Microsoft et qui permettent de fournir un contenu spécifiquement à MSIE.
Et si tu es très très fort, tu peux tenter le Malarkey Style
(regarder la page sous !IE, Safari, Opera, FF, ... puis sous MSIE)
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?