Move and Size TextAreas

By Rob Albin Last update Aug 20, 2005 — Installed 2,546 times. Daily Installs: 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 0
Script Summary:
Places small graphical overlays on text areas, use the mouse to move, resize, or toggle between maximized/reset. Mouse over the dots for tooltips.
Version: 1.2
Recently Updated TopicsPosts
Archived Comments5

this script has 1 topic, 5 posts

This script has no reviews.

USAGE:
- A small tab will appear, fixed in the lower-right of the browser window, on pages containing textareas.
- Click the tab, and a red and blue dot will appear to the lower-right of all textareas on the page.
- Mouse over the dots for usage tooltips.

UPDATE:
SEP 1, 2006 - Finally got around to fixing this greasemonkey script to
work with new versions of Firefox... I guess it's been broken for quite
a while, but no one complained and I forgot about the script for a while... ;-)
About 15 minutes to fix, the old (I guess deprecated) way of adding event
listeners is no longer supported by Firefox, had to replace all occurances with
the proper .addEventListener() wrappers for the various "lambda" functions.

UPDATE:
SEP 1, 2006 - This script still has some issues with the drag buttons on
some pages. I guess it's related to the event handling. I'm a seasoned
programmer, but don't work on much JavaScript, so debugging that may take
me a while. If a seasoned JS programmer happens upon this little do-dad,
give it a try. Hopefully you'll find it's a nice little framework
for handling this type of extended functionality for textareas. Give me
a suggestion in the comments for the event bug, if you have the time.

ORIGINAL CREDIT:
- Rework of David Schontzler's excellent ExpandArea script, which provided a good framework for extending. A short cleanly written script showing off some fairly advanced DOM manipulation techniques. The first thing I thought after loading it up was: this is a great idea, I have got to have more movement options in this thing :-)

UI CHANGES:
- Modified the reset function to a toggle between semi-maximized and reset (click red dot)
- Added move feature (drag red dot)
- Added alternate "zoom" resize function (press SHIFT key and drag blue dot)

COMMENTS:
- Added zIndex incrementing, so forum pages with several textareas will always flip the one you're using on top of others
- Modified event trigger for copying text back to original textarea from 'onkeyup' to 'onblur' in the proxy 'txt' element. Definitely a better choice as long as it works, which it does on the web mail and forums I tested on. (Including this one, and the description you're reading now.)
- I can be reached at albinrw (at) yahoo (dot) com if you have comments/complaints.