PHP ver gevorderde |
|
Hoi,
Ik heb een input veld en paar smileys die met UBB werken, wat ik nu wil dat je NIET in het input veld wat kan invullen (dus gewoon een text typen met je toetsenbord).. Maar WEL als je op een plaatje klikt dat de UBB code naar de inputveld word verplaatst..
Ikki.
<td height="41" width="24%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel1:');"><img src="smileys/blij.gif" width="20" border="0" /></a></td>
<td height="41" width="24%" align="center" valign="middle"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel2:');"><img src="smileys/tanden.gif" width="20" height="20" border="0" /></a></td>
<td height="41" width="23%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel3:');"><img src="smileys/tong.gif" width="20" height="20" border="0" /></a></td>
<td height="41" width="29%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel4:');"><img src="smileys/knipoog.gif" width="20" height="20" border="0" /></a></td>
</tr>
<tr>
<td height="36" width="24%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel5:');"><img src="smileys/cool.gif" width="20" height="20" border="0" /></a></td>
<td height="36" width="24%" align="center" valign="middle"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel6:');"><img src="smileys/verward.gif" width="20" height="20" border="0" /></a></td>
<td height="36" width="23%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel7:');"><img src="smileys/omg.gif" width="20" height="20" border="0" /></a></td>
<td height="36" width="29%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel8:');"><img src="smileys/droevig.gif" width="20" height="20" border="0" /></a></td>
</tr>
</table>
<br>
<input name="bericht" type="text" id="bericht" size="3" maxlength="8" /><br />
</td>
</tr>
<td height="41" width="24%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel1:');"><img src="smileys/blij.gif" width="20" border="0" /></a></td> <td height="41" width="24%" align="center" valign="middle"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel2:');"><img src="smileys/tanden.gif" width="20" height="20" border="0" /></a></td> <td height="41" width="23%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel3:');"><img src="smileys/tong.gif" width="20" height="20" border="0" /></a></td> <td height="41" width="29%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel4:');"><img src="smileys/knipoog.gif" width="20" height="20" border="0" /></a></td> </tr> <tr> <td height="36" width="24%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel5:');"><img src="smileys/cool.gif" width="20" height="20" border="0" /></a></td> <td height="36" width="24%" align="center" valign="middle"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel6:');"><img src="smileys/verward.gif" width="20" height="20" border="0" /></a></td> <td height="36" width="23%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel7:');"><img src="smileys/omg.gif" width="20" height="20" border="0" /></a></td> <td height="36" width="29%" valign="middle" align="center"><a href="javascript:smiley();" onClick="javascript:Invoegen(':pixel8:');"><img src="smileys/droevig.gif" width="20" height="20" border="0" /></a></td> </tr> </table> <br> <input name="bericht" type="text" id="bericht" size="3" maxlength="8" /><br /> </td> </tr>
|