... */ function affiche_image(uneImage) { //var theURL = '/includes/catalogue_2/voir_image.php?imagefullpath=' + uneImage; var theURL = 'default.php?function=voir_image&imagefullpath=' + uneImage; var winName = 'photo'; var laLargeur = 800; var laHauteur = 600; var features = 'width=' + laLargeur + ',height=' + laHauteur ; features += ',directories=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes'; window.open(theURL,winName,features); } function redimensionner_fenetre(largeur, hauteur) { window.focus(); // Test du navigateur : var isIE = (document.all)?1:0; // MSIE var isNS = (document.layers)?1:0; // Netscape v.4 ou inf. var isMZ = ((navigator.appName=='Netscape')&&(parseInt(navigator.appVersion)>=5))?1:0; // Mozilla / Netscape v6+ if(isNS) { // Netscape Navigator 4.x ou inf. window.innerHeight = hauteur + 4; window.innerWidth = largeur + 4; // var le = window.screen.availWidth; var he = window.screen.availHeight; //alert(le + " x " + he); var lf = window.outerWidth; var hf = window.outerHeight; //alert(lf + " x " + hf); var xf = le/2 - lf/2; var yf = he/2 - hf/2; //alert(xf + " x " + yf); window.moveTo(xf, yf); } else if(isMZ) { // Netscape 6+ ou Mozilla (moteur Gecko) window.innerHeight = hauteur + 4; window.innerWidth = largeur + 4; // var le = window.screen.availWidth; var he = window.screen.availHeight; //alert(le + " x " + he); var lf = window.outerWidth; var hf = window.outerHeight; //alert(lf + " x " + hf); var xf = le/2 - lf/2; var yf = he/2 - hf/2; //alert(xf + " x " + yf); window.moveTo(xf, yf); } else { //else if(isIE) { // MS Internet Exploser par defaut : window.resizeTo(largeur + 16, hauteur + 35); // var le = window.screen.availWidth; var he = window.screen.availHeight; //alert(le + " x " + he); var xf = le/2 - 400; var yf = he/2 - 300; //alert(xf + " x " + yf); window.moveTo(xf, yf); } // }// -->
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||