[code]
<head>
<script>
function formatSelected(from_obj, formatting, format2) {
from_obj.focus ();
var w = self.document.selection.createRange ();
w.text = "["+formatting+format2+"]"+w.text+"[/"+formatting+"]";
}
</script>
</head>
<p>
<STYLE> P { cursor : hand; }</STYLE>
<form action="chat/Post.php" METHOD=POST enctype="multiport/form-data">
<table>
<tr>
<td width=100></td><td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'b', '');">[b]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'i', '');">[i]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'u', '');">[u]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'url', '=');">[url]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'center', '');">[center]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'img', '');">[img]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'mail', '=');">[mail]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'font', '=');">[font]</a></td><TD><select name="fontas" size="1" tabindex="1"><option>Lucida Console</option>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'size', '=');">[size]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'color', '=');">[color]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'codearea', '');">[codearea]</a></td>
<td><a onmouseover=="this.style.cursor='hand'" onclick = "formatSelected(forSELECT, 'code', '');">
Expand|Select|Wrap|Line Numbers
- </a></td></td>
- </tr>
- </table>
- <textarea id=forSELECT name=text cols=80 rows=10></textarea>
- <INPUT TYPE="submit" NAME="Submit" VALUE="Send"></form>