zellodog
12-06-2005, 03:16 AM
I was just wondering, how do you make an expandable text box? That's the one that keeps growing, instead of there being a scroll box, right?
|
View Full Version : Layouts zellodog 12-06-2005, 03:16 AM I was just wondering, how do you make an expandable text box? That's the one that keeps growing, instead of there being a scroll box, right? harmor 12-06-2005, 03:39 AM Try this and tell me if it's what you want <script type="text/javascript"><!-- function resizeMe(objText) { var iMin = 9; objText.size = (objText.value.length<iMin)?iMin:objText.value.length; } //--></script> </head> <body> <form name="f"> <input type="text" name="t1" size="9" onkeypress="resizeMe(this);" /><br /> </form> zellodog 12-07-2005, 11:58 PM Try this and tell me if it's what you want <script type="text/javascript"><!-- function resizeMe(objText) { var iMin = 9; objText.size = (objText.value.length<iMin)?iMin:objText.value.length; } //--></script> </head> <body> <form name="f"> <input type="text" name="t1" size="9" onkeypress="resizeMe(this);" /><br /> </form> That's not it. I mean I need a box like the one that's in layouts where you put updates and about and stuff, that instead of a scroll bar appearing when you write a lot, it gets longer. Is that possible? pb&j 12-08-2005, 02:40 AM sounds like a normal, plain div area... <div style="border:1px solid #000; width:200px;"> stuff here </div> |