Sujet : [OPERA] mon site ne marche pas du tout avec opera (pb de JavaScript) |
petoulachi |
gizmo a écrit a écrit :
ah! dans ce cas, essaye de le mettre au niveau de IE. Mais je suis pas sur que les changement de couleurs soient standards.
|
he non bien sur....
ptin meme pour la date ça chie : il rentre dans la condition if (document.all), et meme dans la navigator.appname = "IE" (meme si c pas IE mais Microsoft ...) MAIS ne se comporte pas comme IE pour l'année.
De meme pour les styles ...
I am dans le caca ... |
gizmo |
TROUVE! (chuis une bête :D) L'erreur, une fois de plus, ne vient pas d'opéra, mais bien de ta facon d'écrire le code.
Explication: le STANDARD HTML oblige à choisir entre body et frameset dans une même page. Or toi, tu mets les 2, donc il est normal qu'Opéra s'y perde.
Voici donc le code correct, épuré (parce qu'en plus, c'était le bordel :D), et qui marche:
Code :
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <TITLE>European Institute of Cognitive Sciences and Engineering</TITLE>
- </head>
- <script language="javascript">
- <!-- Caché pour les vieux navigateurs ...
- //permet de sortir des frames si le visiteur vient d'un autre site
- if (top.location != self.document.location)
- top.location=self.document.location;
- // determine si le navigateur utilisé est netscape 4.x ou inferieur
- function oldNetscape()
- {
- verStr=navigator.appVersion;
- version = parseFloat(verStr);
- if (navigator.appName == 'Netscape')
- {
- if (version <= 4.7)
- return true;
- else
- return false;
- }
- else
- return false;
- }
- document.writeln('<html>');
- document.writeln('<head>');
- document.writeln('<title>European Institute of Cognitive Sciences and Engineering</title>');
- document.writeln('</head>');
- document.writeln('<frameset cols="153,*" framespacing=0 border=0 frameborder="no">');
- document.writeln(' <frameset rows="90,110,*,41">');
- document.writeln(' <frame name=logo src=logo.htm scrolling=no marginwidth=0 marginheight=0 NORESIZE frameborder=no>');
- document.writeln(' <frame name="naviSmall" src="naviSmall.htm" scrolling="no" marginwidth=0 marginheight=0 NORESIZE frameborder="no">');
- document.writeln(' <frame name="menuGauche" src="menu.htm" marginwidth=0 marginheight=0 NORESIZE frameborder="no">');
- document.writeln(' <frame name="copyright" src="copyright.htm" scrolling="no" marginwidth=0 marginheight=0 NORESIZE frameborder="no">');
- document.writeln(' </frameset>');
- document.writeln(' <frameset rows="65,*,20">');
- document.writeln(' <frame name="upFrame" src="upframe.htm" scrolling="no" marginwidth=0 marginheight=0 NORESIZE frameborder="no">');
- document.writeln(' <frame name="content" src="accueil.htm" marginwidth=0 marginheight=0 NORESIZE frameborder="no">');
- document.writeln(' <frame name="downFrame" src="downframe.htm" scrolling="no" marginwidth=0 marginheight=0 NORESIZE frameborder="no">');
- document.writeln(' </frameset>');
- document.writeln('</frameset>');
- document.writeln('<noframes>');
- document.writeln('<body>');
- document.writeln('<font face="Arial" size=5>We are sorry but your browser does not support frame.<br>');
- document.writeln('Please update your favorite browser and come after ;<br>');
- document.writeln('<ul type="disc">');
- document.writeln(' <li><a href="http://www.microsoft.com">Internet Explorer</a>');
- document.writeln(' <li><a href="http://www.netscape.com">Netscape</a>');
- document.writeln('</ul>');
- document.writeln('</font>');
- document.writeln('</body>');
- document.writeln('</noframes>');
- document.writeln('</html>');
- //-->
- </script>
- <noscript>
- <body>
- <font size=3>
- <b>Please wait during loading ....<br> If this page stay here, it's probabily because your
- browser can not diplay it.<br>We advise you to download and install the last version of Internet
- Explorer or Netscape.<br> Thank you for your comprehension.
- <ul type="disc">
- <li><a href="http://www.microsoft.com">Internet Explorer</a>
- <li><a href="http://www.netscape.com">Netscape</a>
- </ul>
- </b>
- </font>
- </body>
- </noscript>
- </html>
|
|