Thread Eingabefelder... (2 answers)
Opened by TheDHK at 2007-03-04 11:06

renee
 2007-03-04 11:21
#25071 #25071
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Das hier funktioniert:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Schreibtest</title>
<script language='javascript'>
<!--
var Bold = 0;
function PostWrite(NewCode) {
var elem = document.getElementById('PostText');
elem.value+=NewCode;
elem.focus();
return;
}
function IBCbold() {
var ToAdd;
if (Bold == 0) {
ToAdd = "[B]";
Bold = 1;
} else {
ToAdd = "[/B]";
Bold = 0;
}
PostWrite(ToAdd);
}
//-->
</script>
</head>
<body>
<input type="button" accesskey="b" value=" B " onClick="IBCbold();"" title="BOLD: [Control / Alt] + b" name="bold" style="font-weight:bold" />
<textarea cols="60" rows="12" wrap="soft" name="Post" id="PostText" tabindex="3"></textarea>
</body>
</html>
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Eingabefelder...