Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a textarea for scrollable text display

Status
Not open for further replies.

bamboo

Programmer
Aug 22, 2001
89
US
I know this is a lame way to do this, but thought I'd post a question to see if there is a better way to do this w/o using Flash. I'm using a form <textarea> to display the actual text of the page. In my instance it's for my clients tour schedule (she's a musician). It works great and I just set the properties to 'read-only'.

My question is if there is a better way to do this besides using the <textarea>. Maybe a JS or DHTML way. I know you can do this nicely with Flash with the up arrow down arrow to scroll, but don't have the time to learn Flash and create this.

I would also like to find a way to justify the text within this scrolling text area if at all possible. But first things first. Any recommendations/suggestions would be great.
 
Use a div with scroll=auto

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
As Tracy said, or you can learn DHTML and clone whatever you are visualising in Flash. DHTML is widely under-estimated ;)

--Glen :)

Memoria mihi benigna erit qui eam perscribam
 
Can you provide an example of the div w/ scroll=auto. I'm not quite understanding this. The div would be for alignment? And scroll=auto would be within the <textarea> tag?
 
as an alternative to textarea but it may require extensive tweaking to get the result you expect.

<div style="scroll:auto;">schedule goes here</div>



--Glen :)

Memoria mihi benigna erit qui eam perscribam
 
another solution would be the iframe tag :)

--Glen :)

Memoria mihi benigna erit qui eam perscribam
 
Thanks Glen! Ya, let me research this. I'm not familiar with the <div> other then <div align="..">.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top