formulaire / clique / image / insert / texte... - Programmation
Marsh Posté le 22-08-2001 à 20:50:44
voici ma page qui marche pas...
<table border=0 width=95% bgcolor="#6666FF" align="center">
<TR><TD></td>
<td align="right"><FONT SIZE="2" FACE="Verdana, Arial">
<B><?echo $form_title?><br> <FONT COLOR="#000080"><?echo $bn_title?></FONT></FONT></B>
</td></tr></table>
<div align="center"></div>
<center>
<table border=0 cellpadding=0 cellspacing=0 width="95%" align="center">
<TR><td bgcolor="#000000">
<table border=0 cellpadding=4 cellspacing=1 width=100% bgcolor="#6666FF">
<tr bgcolor="#6699FF">
<td><FONT SIZE="2" FACE="Verdana, Arial"><B>Votre nom:</B></FONT></td>
<td><INPUT TYPE="TEXT" NAME="username" VALUE="<?echo $username?>" SIZE=25 MAXLENGTH=25></td>
</tr>
<tr bgcolor="#6699FF">
<td><FONT SIZE="2" FACE="Verdana, Arial"><B>votre e-mail:</B></FONT></td>
<td><INPUT TYPE="TEXT" NAME="useraddress" VALUE="<?echo $useraddress?>" SIZE=30 MAXLENGTH=40> </td>
</tr>
<TR bgcolor="#6699FF">
<td NOWRAP><FONT SIZE="2" FACE="Verdana, Arial"><B>Sujet:</B></FONT></td>
<td><INPUT TYPE="TEXT" NAME="subject" VALUE="<?echo $subject?>" SIZE=50 MAXLENGTH=85></td>
</tr>
<tr bgcolor="#6699FF">
<td valign=top><FONT SIZE="2" FACE="Verdana, Arial"><B>Icone associé:</B></FONT></td>
<td>
<?radioButton ("icon", "icon1.gif", $icon, " " )?><IMG src="icons/icon1.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon10.gif", $icon, " " )?><IMG src="icons/icon10.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon11.gif", $icon, " " )?><IMG src="icons/icon11.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon12.gif", $icon, " " )?><IMG src="icons/icon12.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon13.gif", $icon, " " )?><IMG src="icons/icon13.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon14.gif", $icon, " " )?><IMG src="icons/icon14.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon2.gif", $icon, " " )?><IMG src="icons/icon2.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER> <br>
<?radioButton ("icon", "icon3.gif", $icon, " " )?><IMG src="icons/icon3.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon4.gif", $icon, " " )?><IMG src="icons/icon4.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon5.gif", $icon, " " )?><IMG src="icons/icon5.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon6.gif", $icon, " " )?><IMG src="icons/icon6.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon7.gif", $icon, " " )?><IMG src="icons/icon7.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon8.gif", $icon, " " )?><IMG src="icons/icon8.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER>
<?radioButton ("icon", "icon9.gif", $icon, " " )?><IMG src="icons/icon9.gif" HEIGHT=15 WIDTH=15 ALIGN=ABSCENTER> <BR>
</td>
</tr>
<tr bgcolor="#6699FF">
<td valign=top NOWRAP> <FONT SIZE="2" FACE="Verdana, Arial"><B>Message:</B></FONT> <br>
<table cellspacing="4" cellpadding="1" border="0" align="center">
<tbody>
<tr align="center" bgcolor="#6699FF">
<td colspan="3"><font face="Verdana, Arial" size=1 color="#000080"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif"><b>Smilies
:</b></font></font></td>
</tr>
<tr align="right">
<td><img onClick="insertElt(' ')" src="images/bounce.gif" align="ABSCENTER" width="31" height="31" alt=":bounce:"><br>
<img onClick="insertElt(' ')" src="images/hotb.gif" align="ABSCENTER" width="31" height="31" alt=":hot:"><br>
<img onClick="insertElt(' ')" src="images/spookie.gif" align="ABSCENTER" width="31" height="31" alt=":spookie:"></td>
<td>
<div align="center"> <img onClick="insertElt(' ')" src="images/smile.gif" align="ABSCENTER" width="15" height="15" alt="">
<img onClick="insertElt(' ')" src="images/frown.gif" align="ABSCENTER" width="15" height="15" alt="">
<img onClick="insertElt(' ')" src="images/biggrin.gif" align="ABSCENTER" width="15" height="15" alt=":D">
<img onClick="insertElt(' ')" src="images/wink.gif" align="ABSCENTER" width="15" height="15" alt="">
<img onClick="insertElt(' ')" src="images/eek.gif" align="ABSCENTER" width="15" height="15" alt=":ouch:"><br>
<img onClick="insertElt(' ')" src="images/redface.gif" align="ABSCENTER" width="15" height="15" alt=":o">
<img onClick="insertElt(' ')" src="images/mad2.gif" align="ABSCENTER" width="15" height="15" alt=":pt1cable:">
<img onClick="insertElt(' ')" src="images/tongue.gif" align="ABSCENTER" width="15" height="15" alt=":p">
<img onClick="insertElt(' ')" src="images/na.gif" align="ABSCENTER" width="15" height="15" alt=":na:">
<img onClick="insertElt(' ')" src="images/rolleyes.gif" align="ABSCENTER" width="15" height="15" alt=":sarcastic:"><br>
<img onClick="insertElt(' ')" src="images/mad.gif" align="ABSCENTER" width="15" height="15" alt=":fou:">
<img onClick="insertElt(' ')" src="images/confused.gif" align="ABSCENTER" width="15" height="22" alt="">
<img onClick="insertElt(' ')" src="images/laugh.gif" align="ABSCENTER" width="15" height="15" alt=":lol:">
<img onClick="insertElt(' ')" src="images/yawn.gif" align="ABSCENTER" width="15" height="15" alt=":wahoo:">
<img onClick="insertElt(' ')" src="images/wobble.gif" align="ABSCENTER" width="15" height="15" alt=":crazy:"><br>
<img onClick="insertElt(' ')" src="images/love1.gif" align="ABSCENTER" width="15" height="15" alt=":love:">
<img onClick="insertElt(' ')" src="images/spin3.gif" align="ABSCENTER" width="15" height="15" alt=":benetton:">
<img onClick="insertElt(' ')" height="15" src="images/crying1.gif" width="15" align="ABSCENTER" alt=":cry:">
<img onClick="insertElt(' ')" src="images/hapface01.gif" align="ABSCENTER" width="15" height="15" alt=":hap:">
<img onClick="insertElt(' ')" src="images/icon15.gif" align="ABSCENTER" width="16" height="16" alt=":sol:"><br>
<img onClick="insertElt(' ')" src="images/smileJap.gif" align="ABSCENTER" width="20" height="20" alt=":jap:">
<img onClick="insertElt(' ')" src="images/sleep.gif" align="ABSCENTER" width="20" height="24" alt=":sleep:">
<img onClick="insertElt(' ')" src="images/sweatdrop.gif" align="ABSCENTER" width="16" height="15" alt=":sweat:"><br>
<img onClick="insertElt(' ')" src="images/rocketwhore.gif" align="ABSCENTER" width="100" height="33" alt=":gun:">
</div>
</td>
<td><img onClick="insertElt(' ')" src="images/eek2.gif" align="ABSCENTER" width="15" height="100" alt=":eek2:"><br>
<img onClick="insertElt(' ')" src="images/wavey.gif" align="ABSCENTER" width="25" height="29" alt=":hello:"></td>
</tr>
<tr align="center">
<td colspan="3"></td>
</tr>
</tbody>
</table>
<p></FONT>
</td>
<td bgcolor="#6699FF">
<TEXTAREA NAME="body" ROWS=10 COLS=45 WRAP="VIRTUAL"><?echo $body?></TEXTAREA>
</td>
</tr>
</table>
</td></tr></table>
</center>
Marsh Posté le 22-08-2001 à 21:36:39
suffit de regarder le javascript de ce foum pour avoir la réponse.
Marsh Posté le 23-08-2001 à 12:21:08
moi je l'ai essayé et il marche. t'es sur d'avoir bien tout pris?
Marsh Posté le 22-08-2001 à 20:48:10
Bonjour @ tous !
Voilà mon problème :
Dans un formulaire pour poster dans un forum (j’utilise le forum W-agora) je voudrai que lors que l’on clique sur une image ça insert du texte dans le formulaire mais je sais pas comment on fait…