function modifierImage(code, taille, vignette) { var urlPage = 'http://www.art-invest.fr/admin/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 bandeau = document.getElementById("bandeau"); var menu = document.getElementById("menu"); if (menu) { var mH = menu.offsetHeight; } else { var mH = 0; } if (bandeau) { var bH = bandeau.offsetHeight; } else { var bH = 0; } if (texte) { var tH = texte.offsetHeight; } else { var tH = 0; } var maxH = Math.max(mH, bH); var maxH = Math.max(maxH, tH); //alert("menu:"+mH+" bandeau:"+bH+" texte:"+tH+" max:"+maxH); if (texte) texte.style.minHeight=(maxH - 14)+"px"; if (bandeau) bandeau.style.minHeight=maxH+"px"; if (menu) menu.style.minHeight=(maxH-4)+"px"; if (menu && bandeau) menu.style.minHeight=(maxH + 10)+"px"; if (navigator.userAgent.indexOf("MSIE") >= 0) { if (texte) texte.style.height=(maxH)+"px"; if (bandeau) bandeau.style.height=maxH+"px"; if (menu) menu.style.height=(maxH+10)+"px"; if (menu && bandeau) menu.style.height=(maxH + 10)+"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(); }