j'ai fait une fonction JS
Code :
- function affichetypo(formname,image){
- var typo;
- if(document.form2.+formname+.options[document.form2.+formname+.selectedIndex].value)
- {
- typo=document.form2.+formname+.options[document.form2.+formname+.selectedIndex].value;
- typo=typo.replace("afm","jpg" );
- document.+image+.src = '/php/ezpdf/fonts/ttfimgs/tiny_'+typo;
- }
- }
|
comme vous pouvez le voir j'ai tenté une concatenation... en fonction d'un attribut de ma fonction.. Mais ça marche pas comme ça... :-(
où est l'erreur ?