Tilted Forum Project - TFP - Sexuality, Philosophy and Political Discussion

Go Back   Tilted Forum Project - TFP - Sexuality, Philosophy and Political Discussion > Interests > Tilted Technology

Reply
 
LinkBack Thread Tools
Old 05-06-2005, 04:24 PM   #1 (permalink)
Psycho
 
FaderMonkey's Avatar
 
Join Date: Jan 2004
Location: Orlando, FL
how to make those "insert" buttons

I need some help being pointed in the right direction. You know those buttons on this site that you click to "insert image" or "insert hyperlick" when you are posting? I'm trying to learn how to make those.

For example:

I have a section on my site where people can post. I'd like to make it possible where if someone posting wanted something to be italic they would click a button, a small window would pop up where they would enter what they want italicized, and that would insert the proper italic html tags around their text.

I know this may be pretty complicated, but I just have no idea where to start.
FaderMonkey is offline   Reply With Quote
Old 05-07-2005, 02:38 PM   #2 (permalink)
Rookie
 
Join Date: Jul 2004
Quote:
Originally Posted by FaderMonkey
I need some help being pointed in the right direction. You know those buttons on this site that you click to "insert image" or "insert hyperlick" when you are posting? I'm trying to learn how to make those.

For example:

I have a section on my site where people can post. I'd like to make it possible where if someone posting wanted something to be italic they would click a button, a small window would pop up where they would enter what they want italicized, and that would insert the proper italic html tags around their text.

I know this may be pretty complicated, but I just have no idea where to start.
HTML stuff:

<form name="myForm">
<textarea name="myTextArea"></textarea>
</form>

<input type="button" name="italicizeButton" onClick="italicize(document.myForm.myTextArea)">

Javascript stuff:

<script language=javascript>
<!--

//pass in the textbox you want to add italicized text to
function italicize(textbox) {
var answer=prompt("Enter text to italicize")
textbox.text += "<i>" + answer + "</i>"
}

-->
</script>
cmdrfunk is offline   Reply With Quote
Reply

Bookmarks

Tags
buttons, insert, make

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -7. The time now is 03:10 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
All text (c) 2002-2008 Tilted Forum Project
"Insignia" vBulletin 3.5 - b6gm6n - x7x7x7.com