PHP gevorderde |
|
Hallo,
Ik heb een ubbscriptje, maar als ik nu bijvoorbeeld op B-I of U klik komt er inderdaad b en /b in het veld. Maar ik wil dat ik verder in het tekstvak blijf. Bij mij is dit niet meer het geval:
Tekstvelden en zooi:
<table>
<form name="frmPost" action="<?php $_SERVER['REQUEST_URI']; ?>" method="post" enctype="multipart/form-data" >
</tr>
<td>Titel:</td>
<td><input name="titel" type="text"></td>
</tr>
<tr>
<td colspan="2" align="center">
<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>
<td>Bericht:</td>
<td><textarea name="bericht" cols="60" rows="10"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="submit" value="Post topic!"></td>
</tr>
</form>
</table>
<table> <form name="frmPost" action="<?php $_SERVER['REQUEST_URI']; ?>" method="post" enctype="multipart/form-data" > </tr> <td>Titel:</td> <td><input name="titel" type="text"></td> </tr> <tr> <td colspan="2" align="center"> <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> <td>Bericht:</td> <td><textarea name="bericht" cols="60" rows="10"></textarea></td> </tr> <tr> <td colspan="2"><input type="submit" name="submit" value="Post topic!"></td> </tr> </form> </table>
De javascript:
http://pastebin.be/8069
|