pb argument dans fonction javascript
salut, j'ai une fonction javascript avec des arguments:
Code:
1 2 3 4 5
| print "\n<script>function toto(width,color_user,nom)\n";
print "{\n ";
print " document.write('<td bgcolor=\"#FFFFFF\" width='+width+' onMouseOver=\"tdOnMouseOver(this,\''+color_user+'\');\" <a TITLE= \"nom\" ');\n";
print " document.write('> </td> ');";
print "\n}\n</script>"; |
Je voudrai savoir si il est possible d'appeler l'argument 'nom' dans le code suivant de ma fonction js:
En effet ici le code permet de créer une petite info-bulle. L'argument 'nom' correspond à DUPONT ms l'info-bulle affiche "nom" et pas dupont :evilred:
Merci de votre aide