PHP gevorderde |
|
Hallo,
Ik heb een ubb-script, maar nu wil ik als ik tekst heb geselecteerd de tags hierrond komen. Hoe doe ik dit?
JS: http://pastebin.be/8886
Tekstvak,...
<table><tr>
<td colspan="2"><script language="JavaScript" src="ubb.js" type="text/javascript"></script>
<img src='images/mail.gif' name="ubbmail" alt="mail" width="24" height="20" onclick="UBBmail();"/>
<img src='images/url.gif' name="ubburl" alt="url" width="24" height="20" onclick="UBBurl();" />
<img src='images/img.gif' name="ubbimg" alt="img" width="24" height="20" onclick="UBBimg();" />
<img src='images/bold.gif' name="ubbbold" alt="bold" width="24" height="20" onclick="UBBbold();" />
<img src='images/italic.gif' name="ubbitalic" alt="italic" width="24" height="20" onclick="UBBitalic();" />
<img src='images/under.gif' name="ubbunderline" alt="underline" width="24" height="20" onclick="UBBunderline();" /></td>
</tr>
<tr>
<td>Bericht:</td>
<td><textarea name="bericht" cols="50" rows="10"></textarea></td>
</tr></table>
<table><tr> <td colspan="2"><script language="JavaScript" src="ubb.js" type="text/javascript"></script> <img src='images/mail.gif' name="ubbmail" alt="mail" width="24" height="20" onclick="UBBmail();"/> <img src='images/url.gif' name="ubburl" alt="url" width="24" height="20" onclick="UBBurl();" /> <img src='images/img.gif' name="ubbimg" alt="img" width="24" height="20" onclick="UBBimg();" /> <img src='images/bold.gif' name="ubbbold" alt="bold" width="24" height="20" onclick="UBBbold();" /> <img src='images/italic.gif' name="ubbitalic" alt="italic" width="24" height="20" onclick="UBBitalic();" /> <img src='images/under.gif' name="ubbunderline" alt="underline" width="24" height="20" onclick="UBBunderline();" /></td> </tr> <tr> <td>Bericht:</td> <td><textarea name="bericht" cols="50" rows="10"></textarea></td> </tr></table>
|