View Full Version : Text inside TEXTAREA
inderpal
Aug 22nd 2006, 8:19 pm
Hi,
Is it possible to put text inside TEXTAREA in different colors? Say first line in red, second line in blue. I have to do something like that but am not sure how to do it. Any pointers/directions will be highly appreciated.
Thanks in advance!!
Best Regards,
Inderpal Singh
ccoonen
Aug 22nd 2006, 8:29 pm
i believe you can modify it's attributes as a whole - but I don't think you can make a standard textarea colorized/stylized different for different portions of it.
inderpal
Aug 23rd 2006, 11:32 am
Hi,
I know it's not possible to put different color text inside TEXTAREA field. but, is there any component (works in both IE and Firefox) which I can use in HTML where I can put different color text and should be scrollable?
Best Regards,
Inderpal Singh
mjamesb
Aug 26th 2006, 10:58 pm
Yeah...a Div...just need to have the style of overflow on it.
<div style="height:200;width:300;border:3px inset;overflow:scroll;">
<div style="color:red;">I am red</div>
<div style="color:green;">I am green</div>
<div style="color:blue;">I am blue</div>
<div style="color:red;">I am red</div>
<div style="color:green;">I am green</div>
<div style="color:blue;">I am blue</div>
<div style="color:red;">I am red</div>
<div style="color:green;">I am green</div>
<div style="color:blue;">I am blue</div>
<div style="color:red;">I am red</div>
<div style="color:green;">I am green</div>
<div style="color:blue;">I am blue</div>
</div>
ForumJoiner
Feb 6th 2007, 3:58 pm
Is it possible to make AdSense code to display ads inside a textarea?
ajsa52
Feb 7th 2007, 7:29 am
Is it possible to make AdSense code to display ads inside a textarea?
I've tried, but it does not work:
<html>
<head />
<body>
<textarea id="miarea" name="miarea" rows="7" cols="50" style="font-size:11px;">
<script type="text/javascript"><!--
google_ad_client = "pub-1234567890123456";
google_alternate_color = "FFFFFF";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text";
google_color_border = "444444";
google_color_bg = "777777";
google_color_link = "0000CC";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</textarea>
</body>
</html>
BTW, why you need ads inside a textarea ?
ForumJoiner
Feb 7th 2007, 7:35 am
I like to run 2 kind of websites. One kind that wants to be helpful, like this
wamp.lunlun.com (http://wamp.lunlun.com), with little or no ads, and others where ads are placed everywhere.
I'm curious, in the long run, which ones will be appreciated more. :-)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.