Thread Recap (last 10 posts from newest to oldest)
Feb 07, 03 at 6:34pm
Takua
Thanks, I hope Lycos.nl and ActiveTopic.com are working both again, first Lycos.nl was down and then ActiveTopic, then Lycos etc.. Oh well, they're free
Feb 07, 03 at 8:27am
Kuldahar
You would need to use javascript for that. As you know, this is the way on how to make a drop down list, along with the "chatbox" that you want:
code
<form name="test">
<textarea name="testbox" cols="50" rows="5">
Place text here
</textarea>
<select>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
</select>
</form>
To be able to add to the textarea, you have to use this code:
code
<script language="Javascript">
<!--
function addToBox(txt) {
//get the form
//in this case, the forms name is "test"
var frm = document.test;
//get the current content of the textarea
//in this case, the textareas name is "testbox"
var chatboxvalue = frm.testbox.value;
//add the text you want to add to the textarea
frm.chatbox.value = chatbox + txt;
return;
}
//-->
</script>
and place between the <head></head> tags.
For that to run, you have to change your HTML a bit:
code
<form name="test">
<textarea name="testbox" cols="50" rows="5">
Place text here
</textarea>
<select>
<option onClick=addToBox("[option1 added]")>Option 1</option>
<option onClick=addToBox("[option2 added]")>Option 2</option>
<option onClick=addToBox("[option3 added]")>Option 3</option>
<option onClick=addToBox("[option4 added]")>Option 4</option>
</select>
</form>
Now, placing highlighted text between tags is another thing, and involves a more complicated script.
They have tutorials on how to make the drop down boxes, I used them since they are useful yet easy to make
Feb 04, 03 at 3:33pm
Takua
I want to make a drop-box like the Font color box. That isn't hard to do but how do I make it that when you select a option (per exaple Red) that it pastes it into the message box. This is the Chatbox<- No more I would like a drop-box that puts a smiley into the message box.
I tried Google, Altavista, the forum search and a site listed in the Helpful Links and Links Requests tread...
Weh..
This message was edited by Takua on Mar 20 2003.
Powered by neoforums v1.6.5b (aperture) Copyright Neo Era Media, Inc. 1999-2013