Closed Thread Icon

Topic awaiting preservation: buttons question (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8557" title="Pages that link to Topic awaiting preservation: buttons question (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: buttons question <span class="small">(Page 1 of 1)</span>\

 
mas
Paranoid (IV) Inmate

From: the space between us
Insane since: Sep 2002

posted posted 03-03-2003 18:38

hello =)
does somebody know how i can create buttons which enter a defined text into a text area? you know there a tons of examples. ie. here. as you can see, there are some buttons like B I U QUOTE and so on... this is what i want.
help?

elysiumart

trib
Paranoid (IV) Inmate

From: Den Haag, Netherlands
Insane since: Sep 2002

posted posted 03-03-2003 21:36

Google says http://www.faqts.com/knowledge_base/view.phtml/aid/5140

DmS
Paranoid (IV) Inmate

From: Sthlm, Sweden
Insane since: Oct 2000

posted posted 03-04-2003 10:22

or... http://www.dmsproject.com/test/wysiwygger/DmSWysiwyg.html
/Dan

{cell 260}
-{ a vibration is a movement that doesn't know which way to go }-

Archonian
Nervous Wreck (II) Inmate

From: Sweden, Malmoe
Insane since: Jan 2003

posted posted 03-07-2003 11:37

I guess you could do:

<html>
<head>

<script language="javascript">
function addText(what) {
document.f.square.value += what;
}
</script>

</head>
<body>

<input type="button" value="Hello" onClick="addText('[Hello]')">
<input type="button" value="Man" onClick="addText('[Man]')">
<form name="f">
<textarea name="square"></textarea>
</form>

</body>
</html>

JKMabry
Maniac (V) Inmate

From: out of a sleepy funk
Insane since: Aug 2000

posted posted 03-07-2003 18:32

I shamelessly ripped this from the same forum js a few days ago and made a code snip in maX's HTML Beauty plus ditty plus plus or something:

code:
<html>
<head>
<script type="text/javascript">
a_desc = "one";
b_desc = "two";
c_desc = "three";

function description(desc) {
document.nav.descriptions.value = eval(desc + "_desc");
}
</script>
</head>

<body bgcolor="#ffffcc">

<form name="nav">
<table>
<tr>
<td width="100">
<a href="#" onmouseover="description('a')">1</a><br /><br />
<a href="#" onmouseover="description('b')">2</a><br /><br />
<a href="#" onmouseover="description('c')">3</a><br /><br />
</td>
<td width="600" align="center" valign="middle">
<input type="text" name="descriptions" style="font:40px courier,serif;border:0px;color:purple;" value="" />
</td>
</tr>
<//table>
</form>

</body>
</html>



Jason

« BackwardsOnwards »

Show Forum Drop Down Menu