- - All
Thread titleFromLast replied
Now searching...
Neoseeker Forums » » Web Coding » [Query] Drop-Boxes » Post Reply

Note to Guests: For the enjoyment of other visitors, and to help keep this forum tidy and working smoothly, please make sure you search the forum before posting your question.
REPLY TO A THREAD
Name:* Members, please LOGIN before posting
Email: We use this to display your Gravatar

Sign in with
Subject:*
Message:*


HTML is not allowed
markup is allowed

Help with markup tags

Enabling Buttons in IE7




Smilies:
  ·all smilies here
:) :P ;) :( :| ;( :D :confused: :cool: :# :o ^_^ :colored: :thick:

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.




Feb 07, 03 at 3:10am
PN0yplayinURMOMMA


try http://www.funky-chickens.com or http://www.htmlpalace.com

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

Neoseeker.com   |   Forum Rules   |   Forum FAQ   |   Neoseeker Terms of Use   |   Supermods On Duty [ server id: web3 ··· elapsed: 0.4513630867]
Chat and Lounges
Game Platforms
Mobile Platforms