View Full Version : textarea help
aspdude2004
05-13-2004, 07:35 PM
Hiow do you put dynamic content in text areas
<form>
<textarea>Hello</textarea>
</form>
you cant just do it like this
<textarea><img src="monkey.gif"></textarea>
:thumbsup:
bradyj
05-13-2004, 07:53 PM
What do you mean by dynamic? Like random text, or a specific image, or something from a server?
coothead
05-13-2004, 07:54 PM
Hi there aspdude2004,
Try using 'css'
<style type="text/css">
/*<![CDATA[*/
#txtr {
background:url(monkey.gif);
width:200px; /* img width*/
height:200px; /* img height */
}
/*//]]>*/
</style>
<form>
<textarea id="txtr">Hello</textarea>
</form>
Just change dimension values to suit your needs :D
coothead
aspdude2004
05-16-2004, 11:10 AM
thanks ill try that ;)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.