Page 1 of 1
Making a textarea look like a sheet of line paper
Posted: Thu Oct 19, 2006 4:37 pm
by daedalus__
I need to make a textarea look like this:
__________________________
__________________________
__________________________
__________________________
Similar to a sheet of paper or what they look like in Lynx.
I have a couple of different ideas on how to create the illusion of this but nothing solid.
Any ideas?
I was thinking about using multiple input fields and some JS to move the cursor.
Posted: Thu Oct 19, 2006 4:41 pm
by Burrito
why not just style it with a background image (of lines) and a line-height that works with those lines.
Posted: Thu Oct 19, 2006 4:44 pm
by daedalus__
That's a great idea! Thanks burrito!
Posted: Thu Oct 19, 2006 5:24 pm
by daedalus__
Is there a way to get the ID of an element?
Posted: Thu Oct 19, 2006 5:32 pm
by wtf
Code: Select all
document.getElementById( 'elementid' )
?
Posted: Thu Oct 19, 2006 5:38 pm
by Luke
wtf wrote:Code: Select all
document.getElementById( 'elementid' )
?
I believe that's the oposite of what he needs... he said get the id not get the element by the id.
Posted: Thu Oct 19, 2006 5:42 pm
by daedalus__
The Ninja Space Goat wrote:wtf wrote:Code: Select all
document.getElementById( 'elementid' )
?
I believe that's the oposite of what he needs... he said get the id not get the element by the id.
Yes, that is what I meant.
I can not find anything about it.
Posted: Thu Oct 19, 2006 5:50 pm
by RobertGonzalez
You could try googling 'get the ID of an element'. It was not incredibly helpful, but there was one link that might help ...
http://www.faqts.com/knowledge_base/vie ... /aid/20744
Posted: Fri Oct 20, 2006 1:14 am
by daedalus__
I did google.
Posted: Fri Oct 20, 2006 6:09 pm
by JellyFish
element.id property oughta do it.