J'ai 2 scripts pour lancer une fenetre en pop up pour IE et Netscape.
Celui d'IE fonctionne, mais pas celui de Netscape
voici le scripts en question celui en gras : qu'est ce qui cloche ?
<script language="JavaScript">
var ns4 = (document.layers) ? 1 : 0;
var ie4 = (document.all) ? 1 : 0;
if (ns4) {
var page = "popup_ns.html";
}
if (ie4) {
var page = "popup_ie.html";
}
var representation = "";
var barre_de_titre = "";
function agrandissement(vignette,titre) {
representation = vignette;
barre_de_titre = titre;
fenetre = window.open(page,'images','location=no,toolbar=no,directories=no,menubar=no, resizable=yes,scrollbars=yes,status=no,width=700,height=480, screenY=0,screenX=0');
fenetre.focus();
}
</script>
<script language="JavaScript">
document.write('<html><head>');
document.write('<title>' + opener.barre_de_titre + '</title></head>');
document.write('<body>');
document.write('<img src="' + opener.representation + '">');
document.write('</body></html>');
</script>
Message édité par phragmite le 13-11-2003 à 10:33:54