...

View Full Version : scrolling textarea



freddybee
01-03-2003, 03:47 PM
I need a kind of textarea with scroll-bar to show the latest news of my site.

I first think that a non-modifiable textarea zone could works fine but a textarea does'nt support tags like bold, different color ...

Any idea of how to achieve what I want ???

Thanks

redhead
01-03-2003, 03:52 PM
it would probably be best to use an iframe, although there are some other methods of doing what you want disscussed here:

http://www.codingforums.com/showthread.php?threadid=12232

:thumbsup:

cg9com
01-03-2003, 04:01 PM
you can incorperate just about anything you want into a div element.

Catman
01-03-2003, 04:06 PM
In other words, something like:

div {
height : 10em;
overflow : scroll;
}

zoobie
01-03-2003, 07:11 PM
Originally posted by freddybee
but a textarea does'nt support tags like bold, different color

I think you havta use inline style and not call on a css class with textareas.

<textarea cols=30 rows=10 style="font:bold 12 tahoma; color:magenta;background-color:black;" readonly="readonly">Blah blah blah</textarea>

I found that if you change the scrollbar colors to match the background, the arrows will only show when wrapping.

Dat what you mean? :D

Bosko
01-03-2003, 07:14 PM
I think that he means that the textarea can only hold plain text and no markup.

cg9com
01-03-2003, 07:15 PM
i think he meant just a specific word in bold or something.
if not zoobies explanation would work, its shorthand
<edit>kinda said the same thing, posted at same time</edit>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum