Bonjour,

J'utilise un javascript qui ouvre une pop-up à la taille d'une image définie, mais j'aimerais autoriser le scrollbar dans cet pop-up, et comme j'ai récupéré ce code, je ne le connais pas. D'ailleur le javascript je ne connais pas tellement ! C'est plus PHP moi

Si quelqu'un sait comme mettre le scrollbar dans ce code :

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<SCRIPT Language="JavaScript">
<!--   
var popWin = null    
var winCount = 0 
var winName = "popWin" 
 
function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){ 
  var d_winLeft = 0  
  var d_winTop = 0   
  winName = "popWin" + winCount++  
  closePopWin()           
  if (openPopWin.arguments.length >= 4)    
    winFeatures = "," + winFeatures 
  else  
    winFeatures = ""  
  if (openPopWin.arguments.length == 6)   
    winFeatures += getLocation(winWidth, winHeight, winLeft, winTop) 
  else 
    winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop) 
  popWin = window.open(winURL, winName, "width=" + winWidth  
           + ",height=" + winHeight + winFeatures) 
  } 
 
function closePopWin(){     
  if (navigator.appName != "Microsoft Internet Explorer"  
      || parseInt(navigator.appVersion) >=4)  
    if(popWin != null) if(!popWin.closed) popWin.close()  
  } 
 
function getLocation(winWidth, winHeight, winLeft, winTop){ 
  return "" 
  } 
//--> 
</SCRIPT> 
<SCRIPT Language="JavaScript1.2"> 
<!-- 
function getLocation(winWidth, winHeight, winLeft, winTop){ 
  var winLocation = "" 
  if (winLeft < 0) 
    winLeft = screen.width - winWidth + winLeft 
  if (winTop < 0) 
    winTop = screen.height - winHeight + winTop 
  if (winTop == "cen") 
    winTop = (screen.height - winHeight)/2 - 20 
  if (winLeft == "cen") 
    winLeft = (screen.width - winWidth)/2 
  if (winLeft>0 & winTop>0) 
    winLocation =  ",screenX=" + winLeft + ",left=" + winLeft     
                + ",screenY=" + winTop + ",top=" + winTop 
  else 
    winLocation = "" 
  return winLocation 
  } 
//--> 
</SCRIPT>
Merci !