problem hab hier die bb codes:
hier das textfeld:
wie knüpf ich die 2 sachen jetzt zusammen? das ich das scrpt auch nutzen kann? das das 1. feld mit den bb codes das textfeld auch erkennt.
thx im vorraus
PHP-Code:
<body bgcolor="#000066">
<table cellspacing="0" cellpadding="0">
<tr class="tablea_fc">
<td align="left" colspan="3"> </td>
</tr>
<tr>
<td><select id="fontselect"
onchange="fontformat(this.form,this.options[this.selectedIndex].value,'FONT')">
<option value="0">FONT</option>
$bbcode_fontbits
</select
><select id="sizeselect"
onchange="fontformat(this.form,this.options[this.selectedIndex].value,'SIZE')">
<option value="0">SIZE</option>
$bbcode_sizebits
</select
><select id="colorselect"
onchange="fontformat(this.form,this.options[this.selectedIndex].value,'COLOR')">
<option value="0">COLOR</option>
$bbcode_colorbits
</select>
</td>
<td><a href="misc.php?action=bbcode{$SID_ARG_2ND}" target="_blank">
<img src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_help.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_HELP']}" title="{$lang->items['LANG_POSTINGS_BBCODE_HELP']}" border="0" width="23" height="23" /></a> </td>
<td rowspan="2"> </td>
</tr>
<tr>
<td align="center" colspan="2">
<img src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_bold.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_BOLD']}" title="{$lang->items['LANG_POSTINGS_BBCODE_BOLD']}" border="0" onclick="bbcode(document.bbform,'B','')" onmouseover="this.style.cursor='hand';" width="23" height="23" /><img
src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_italic.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_ITALIC']}" title="{$lang->items['LANG_POSTINGS_BBCODE_ITALIC']}" border="0" onclick="bbcode(document.bbform,'I','')" onmouseover="this.style.cursor='hand';" width="23" height="23" /><img
src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_underline.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_UNDERLINE']}" title="{$lang->items['LANG_POSTINGS_BBCODE_UNDERLINE']}" border="0" onclick="bbcode(document.bbform,'U','')" onmouseover="this.style.cursor='hand';" width="23" height="23" />
<img src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_center.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_CENTER']}" title="{$lang->items['LANG_POSTINGS_BBCODE_CENTER']}" border="0" onclick="bbcode(document.bbform,'CENTER','')" onmouseover="this.style.cursor='hand';" width="23" height="23" />
<img src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_url.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_URL']}" title="{$lang->items['LANG_POSTINGS_BBCODE_URL']}" border="0" onclick="namedlink(document.bbform,'URL')" onmouseover="this.style.cursor='hand';" width="23" height="23" /><img
src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_email.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_EMAIL']}" title="{$lang->items['LANG_POSTINGS_BBCODE_EMAIL']}" border="0" onclick="namedlink(document.bbform,'EMAIL')" onmouseover="this.style.cursor='hand';" width="23" height="23" /><img
src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_image.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_IMAGE']}" title="{$lang->items['LANG_POSTINGS_BBCODE_IMAGE']}" border="0" onclick="bbcode(document.bbform,'IMG','http://')" onmouseover="this.style.cursor='hand';" width="23" height="23" />
<img src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_quote.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_QUOTE']}" title="{$lang->items['LANG_POSTINGS_BBCODE_QUOTE']}" border="0" onclick="bbcode(document.bbform,'QUOTE','')" onmouseover="this.style.cursor='hand';" width="23" height="23" /><img
src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_list.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_LIST']}" title="{$lang->items['LANG_POSTINGS_BBCODE_LIST']}" border="0" onclick="dolist(document.bbform)" onmouseover="this.style.cursor='hand';" width="23" height="23" />
<img src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_code.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_CODE']}" title="{$lang->items['LANG_POSTINGS_BBCODE_CODE']}" border="0" onclick="bbcode(document.bbform,'CODE','')" onmouseover="this.style.cursor='hand';" width="23" height="23" /><img
src="http://forum.floffi.de/images/bb-bluevelvet/bbcode_php.gif" alt="{$lang->items['LANG_POSTINGS_BBCODE_PHP']}" title="{$lang->items['LANG_POSTINGS_BBCODE_PHP']}" border="0" onclick="bbcode(document.bbform,'PHP','')" onmouseover="this.style.cursor='hand';" width="23" height="23" />
</td>
</tr>
</table>
hier das textfeld:
PHP-Code:
<html>
<head>
<title>bb codes text</title>
</head>
<body bgcolor="{pagebgcolor}" text="{fontcolorfirst}"{hgpicture}{bgproperties} id="bg">
</td>
</tr>
</table><br> <table border=0 bgcolor="{tablebordercolor}" cellpadding=4 cellspacing=1 width=100%>
$bbcode_buttons
<tr bgcolor="{tablec}" id="tablec">
<td valign="top"><FONT face="{font}" size=2><B>Nachricht:</B></font>
<p> </p></td>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><TEXTAREA NAME="message" ROWS=20 COLS=60 wrap="soft" onChange=getActiveText(this) onclick=getActiveText(this) onFocus=getActiveText(this)>$message</TEXTAREA><br></a></td>
</tr>
</table>
</td>
</tr>
$poll
</table>
<p>
<br></p>
<div align="center">
<INPUT TYPE="HIDDEN" NAME="boardid" VALUE="$boardid"><INPUT TYPE="HIDDEN" NAME="styleid" VALUE="$styleid"><INPUT TYPE="HIDDEN" NAME="previewed" VALUE="$previewed"><INPUT class="input" TYPE="SUBMIT" NAME="submit" ACCESSKEY="S" VALUE="neues Thema erstellen">
<INPUT class="input" TYPE="SUBMIT" NAME="preview" ACCESSKEY="V" VALUE="Vorschau">
</div></form>
</body></html>
wie knüpf ich die 2 sachen jetzt zusammen? das ich das scrpt auch nutzen kann? das das 1. feld mit den bb codes das textfeld auch erkennt.
thx im vorraus