de Ptit Philippe » 24/06/2005 21:38
dans _fonctions.php
FUNCTION AfficheImage($fpath, $fimage, $fw) {
$w_filename=urlencode(str_replace("'", "'",$fpath)."/".str_replace("'", "'",$fimage));
$size = @getimagesize("$fpath/$fimage");
if ($size[2]==2){
$w = $size[0]+$fw;
$h= $size[1]+30;
}
else {
$w=450;
$h=601;
}
if ($h >600) {
$fscroll ='yes';
$h=600;
}
else {
$fscroll ='no';
}
echo "<a href="_image.php?image=$w_filename" target="_blank" Onclick=" javascript:window.open(this.href,'','menubar=no, toolbar=no, location=no,directories=no,status=no,scrollbars=$fscroll, resizable=yes, copyhistory=no,width=$w,height=$h, left=10, top=10');return false;">";
}
*********************
sinon je peux mettre ça en option s'il y a des amateurs