J'ai bien trouvé dautres scripts qui fonctionnent, mais celui ci me turlupine (le premier qui dit de cheval ... )

Sous IE pas de problème, sous FFX il refuse tout simpelement le path de l'image ???

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Popup To Fit Image</title>
<script type="text/javascript">
<!--
var w=window.open('','image','statusbar=no,toolbar=no,scrollbars=no,resizable=no');
 
function PopupImage(image) { 
 
var pic=w.document.createElement('img');
w.ThePic=new Image();
w.ThePic.PicPath=image;
w.ThePic.src=w.ThePic.PicPath;
pic.src=w.ThePic.src;
pic.alt="coucou"
w.document.body.appendChild(pic);
//w.document.getElementsByTagName('img')[0].src=w.ThePic.src;
w.document.body.style.margin='0px';
w.document.close(); 
if(w.document.images[0].complete){FitPic()}
else {setTimeout(function(){FitPic(image)},100)}
}
 
function FitPic(image){
var Hauteur=w.document.images[0].offsetHeight + 29
var Largeur=w.document.images[0].offsetWidth+ 10;
w.resizeTo(Largeur,Hauteur);
var scW = screen.availWidth ? screen.availWidth : screen.width;
var scH = screen.availHeight ? screen.availHeight : screen.height;
w.moveTo(Math.round((scW-Largeur)/2),Math.round((scH-Hauteur)/2));}
 
 
setTimeout(function(){PopupImage('Picture_5.jpg')},500)
//-->
 
</script>
</head>
je n'arrive tout simplement pas à savoir d'ou cela peut provenir ...