Bonjour tout le monde , j'ai une fonction php qui génère du code html (un peu long )
la fonction s'appelle msgbox
en javascript je fais
Code : Sélectionner tout - Visualiser dans une fenêtre à part
 arrFadeTitles[0]="<? echo $tmp->msgBox($message,'yellow',5,0,true,false)?> ";
cependant ça génère une erreur disant que < ne doit pas figurer , je sais je dois faire une concaténation pour chaque ligne mais ça ne marche pas pour une façon dynamique parce que les argument de la fonction sont à partir de la base de données ..

voilà à quoi ressemble le code html généré :
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
 
<table dir="ltr" width="0" cellpadding="0" cellspacing="0" style="margin:5px" border="0">
            <tr>
                <td style="background:url(images/boxes/yellow_top_left.gif) no-repeat 0px 0px;width:5px;height:5px;"></td>
                <td style="background:url(images/boxes/yellow_top.gif) repeat-x 0px 0px;height:5px;"></td>
                <td style="background:url(images/boxes/yellow_top_right.gif) no-repeat 0px 0px;width:5px;height:5px;"></td>
            </tr>
            <tr>
                <td style="background:url(images/boxes/yellow_left.gif) repeat-y 0px 0px;width:5px;"></td>
 
                <td dir="rtl" style="padding:5px;background-color:#fffaca">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td><img src="images/icons/alert.png" style="margin-left:7px" hspace="4" border="0"></td>
                        <td style="color:#666600">slttttt</td>
                    </tr>
                </table>
                </td>
                <td style="background:url(images/boxes/yellow_right.gif) repeat-y 0px 0px;width:5px;"></td>
            </tr>
            <tr>
                <td style="background:url(images/boxes/yellow_down_left.gif) no-repeat 0px 0px;width:5px;height:5px;"></td>
                <td style="background:url(images/boxes/yellow_down.gif) repeat-x 0px 0px;height:5px;"></td>
                <td style="background:url(images/boxes/yellow_down_right.gif) no-repeat 0px 0px;width:5px;height:5px;"></td>
            </tr>
        </table>