Go Back   CP Web Hosting - reseller hosting > Browser Scripting, HTML, XML and Multimedia > FLASH
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2007, 05:24 AM
1R1 1R1 is offline
Senior Member
 
Join Date: Mar 2007
Posts: 164
Default start text at bottom

How would I go about starting the imported text at the bottom rather than having to scroll to the bottom?

General:

----------------- window top
text 1
text 2
text 3
----------------- window bottom
text 4
text 5

But i want

text 1
text 2
----------------- window top
text 3
text 4
text 5
----------------- window bottom
Reply With Quote
  #2 (permalink)  
Old 07-15-2007, 05:26 AM
Senior Member
 
Join Date: May 2007
Posts: 151
Default start text at bottom

myVar = whatever variable is attached to your text box

myVar.scroll = myVar.maxscroll - 2

where 2 is one less than the number of lines that can be seen. also if maxscroll is the last line or the line at the top of the text box when the last line is at the bottom of the text box...just play around. I think it will work.
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0