salut j'ai un problème avec popin sur mon site le problème se pose quand je clique sur image référence
exemple : http://www.mdesign.ma/saaa/references.html

vous cliquer sur dernier références (loterie national)
, il me sort un popin avec du contenu venant du bdd, le problème c'est quand ce contenu est long ma fenêtre m'affiche pas le Reste il ne réagi pas via le scroll du navigateur comment je peux Remédier ça

pour l'info

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
56
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
 
<script>
 
$(document).ready(function() {	
 
	//select all the a tag with name equal to modal
	$('a[name=modal]').click(function(e) {
		//Cancel the link behavior
		e.preventDefault();
 
		//Get the A tag
		var id = $(this).attr('href');
 
		//Get the screen height and width
		var maskHeight = $(document).height();
		var maskWidth = $(window).width();
 
		//Set heigth and width to mask to fill up the whole screen
		$('#mask').css({'width':maskWidth,'height':maskHeight});
 
		//transition effect		
		$('#mask').fadeIn(1000);	
		$('#mask').fadeTo("slow",0.8);	
 
		//Get the window height and width
		var winH = $(window).height();
		var winW = $(window).width();
 
		//Set the popup window to center
		$(id).css('top',  winH/2-$(id).height()/2);
		$(id).css('left', winW/2-$(id).width()/2);
 
		//transition effect
		$(id).fadeIn(2000); 
 
	});
 
	//if close button is clicked
	$('.window .close').click(function (e) {
		//Cancel the link behavior
		e.preventDefault();
 
		$('#mask').hide();
		$('.window').hide();
	});		
 
	//if mask is clicked
	$('#mask').click(function () {
		$(this).hide();
		$('.window').hide();
	});			
 
});
 
</script>
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
<style type="text/css">
.references{/*width:870px;*/ /*width:792px;*/ width:850px; height:700px; margin:1em auto auto auto;  color:#000; margin-bottom:2em;   }
 
.eff{width:164px; height:146px; overflow:hidden; float:left; background-color:#FFF;  margin:10px;  }
 
.references a {color:#333; text-decoration:none}
.references a:hover {color:#ccc; text-decoration:none}
 
.references #mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:none;
}
 
.references #boxes .window {
  position: fixed;
  left:36% !important;
  top:40% !important;
  width:440px;
  height: auto;
  display:none;
  z-index:9999;
  padding:20px;
 
  overflow:hidden;
 
 
}
 
.references #boxes .window P{ float:left;}
 
.references LI{ width:158px; height:146px; 
list-style: none ;
margin:0 0 0 0; float:left;}
 
.references UL{ width:158px; height:146px;  margin:0; padding:0;}
 
.eff ul LI a IMG{ margin:7px 0 0 8px; display:inline;}
 
.titre_Ref{ width:344px; height: auto; float:left; overflow:hidden; font:bold 14pt/16pt "Trebuchet MS", Arial, Helvetica, sans-serif; }
 
.suprimer{ width:20px; height:20px; float:left; margin:0 0 0 7px;}
</style>
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<div class="references">
<span style="display:block; font-size:10pt; width:293px; margin:0 0 0 1em;  " >Quelques unes de nos plus récentes références :</span>
 
<?php
  mysql_query("SET NAMES 'UTF8'");
                   if(isset($_GET['lang'])){
                
                        
                $req=mysql_query("SELECT * FROM `references` WHERE `lang`='$lang' ORDER BY ordre ASC") or die("erreur en sql<br>". mysql_error());
                
                   }
                                                                                                 
                
                while($l=mysql_fetch_array($req))
                {
 
// style css dynamique via references
 
$style='<style type="text/css">';
 
$style.='.references #boxes #dialogg'.$l['ref'].'{';
 
$style.='width:375px; height:auto; padding:10px;  background-color:#fff;';
 
 
$style.='} </style>';
 
 
print($style);
 
?>
 
<!-- image1------->
<div class="eff">
<ul>
<li><a href="#dialogg<?php print($l['ref']); ?>" name="modal">
	<img src="administration/web/uploads/references/<?php print($l['image']); ?>" alt="Test 1" title="" width="<?php print($l['width']); ?>" height="<?php print($l['height']); ?>" border="0" />
 
	</a></li>
    </ul>
</div>
 
 
<!-- *************** modal*******************---------!-->
<div id="boxes">
 
<div id="dialogg<?php print($l['ref']); ?>" class="window">
<div class="titre_Ref">
<?php print($l['nom']); ?>  |</div> 
<div class="suprimer">
<a href="#"class="close"/><img src="images/sup.png" width="16" height="16" border="0"></a></div>
<br />
<p><?php print($l['mission']); ?><br>
 
<br>
</p>
 
</div>
 
 
<!-- Mask to cover the whole screen -->
  <div id="mask"></div>
</div>
<!------------------ fin *******************----------!-->
 
<?php
 
} ?>
 
 
 
</div>