bonjour,
j'aimerais pouvoir imbriquer plusieurs frames en fonction de ma variable $a
je vois, cela ne veut pas...
peut-être la solution est proche du bout de mon nez...
qu'en pensez vous ?
Merci.
en fait ce que j'aimerais exactement,
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 <?php $a=5; echo"<FRAMESET ROWS='100%,100%' border='0' scrolling=yes target=_'self'>"; echo"<FRAME SRC='#'>"; for($i=0;$i<$a;$i++){ // pour chacun des question on cree un frame $frameheight1=strval(100/$a); $frameheight1=$frameheight1.'%'; //echo"$frameheight1"; $frameheight2=strval(100-100/$a); $frameheight2=$frameheight2.'%'; //echo"$frameheight2"; echo"<FRAMESET ROWS='170,*' border='0' target=_'self'>"; //echo"<div>"; echo"<FRAME SRC='graph-camembert-petit.php'>"; //include("graph-camembert-petit.php"); //echo"</div>"; } echo"</frame>"; ?>
c'est obtenir $a frame de 100 pixels de haut chacune.
merci.
Guillaume.
exactement j'aimerais obtenir ca mais avec une scrollling bar pour voir tous mes camemberts...
merci de votre aide.
je rebalance le code toto
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 <?php $a=5; echo"<FRAMESET ROWS='100%,100%' border='0' scrolling=yes target=_'self'>"; echo"<FRAME SRC='#'>"; for($i=0;$i<$a;$i++){ // pour chacun des question on cree un frame $frameheight1=strval(100/$a); $frameheight1=$frameheight1.'%'; //echo"$frameheight1"; $frameheight2=strval(100-100/$a); $frameheight2=$frameheight2.'%'; //echo"$frameheight2"; echo"<FRAMESET ROWS='170,*' border='0' target=_'self'>"; //echo"<div>"; echo"<FRAME SRC='graph-camembert-petit.php'>"; //include("graph-camembert-petit.php"); //echo"</div>"; } echo"</frame>"; ?>
Partager