function modifierImage(code, taille, vignette) { var urlPage = 'http://www.sobek-france.com/admin2/modification_image.php?code=' + code + '&taille=' + taille + '&vignette=' + vignette; window.open(urlPage, 'Admin', 'height=400, width=400, scrollbars=yes, resizable=yes'); } function popupImage(url) { window.open(url, 'Photo', 'height=400, width=400, toolbar=no, menubar=yes, location=no, resizable=yes, scrollbars=no, status=no'); }function resizeWindow() { // une fonction pour mettre la page à la taille du menu de gauche. var texte = document.getElementById("corps"); var menu = document.getElementById("menu"); if (texte && menu && menu.offsetHeight > texte.offsetHeight) { texte.style.minHeight=menu.offsetHeight+"px"; if (navigator.userAgent.indexOf("MSIE") >= 0) texte.style.height=menu.offsetHeight+"px"; } } // la fonction pour les popup sur les images function displayPics() { var liens = document.getElementsByName('imgpopup') ; var top = Math.round((screen.availHeight-400)/2); var left = Math.round((screen.availWidth-400)/2); // Une boucle parcourant l'ensemble des liens contenu dans galerie_mini for (var i = 0 ; i < liens.length ; ++i) { // Au clique sur ces liens liens[i].onclick = function() { window.open(this.href, 'this.alt', 'height=400, width=400, toolbar=no, menubar=yes, location=no, resizable=yes, scrollbars=no, status=no, top=' + top + ', left=' + left); return false; // Et pour finir on inhibe l'action réelle du lien }; } } window.onload = function () { resizeWindow(); displayPics(); }