Results 1 to 5 of 5

Thread: Text Box

  1. #1
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text Box

    How does DD make those text boxes that have the scripts inside them?

    is it something like:

    <form>
    <input type=text size=200 width=32 name="textbox1" style="text-align=left">
    <text=blahblahblahblahblahblahblahblahblahblahblahblah>
    </form>
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    They're not textboxes, they're textareas. The difference is that a textarea can have multiple lines.
    HTML Code:
    <textarea>
    Script goes here
    </textarea>
    For reference, if you wanted to do this with a textbox, you'd use the value attribute:
    HTML Code:
    <input type="text" value="Content goes here"/>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    can the input be an image?
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  4. #4
    Join Date
    Jul 2005
    Location
    Kuwait-I'm American
    Posts
    127
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    How can I specify the textarea size?

    Code:
    <textarea size="150" width="200">
    blahblahblahblahblahblahblahblah
    </textarea>
    //\\ //\\// || //\\//\\ //\\ ||_
    SOFTWARE

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    can the input be an image?
    No, that's why it's called a textbox.
    How can I specify the textarea size?
    HTML Code:
    <textarea rows="20" cols="80">
    Blah blah blah
    </textarea>
    Beware - a row is quite a bit bigger than a column, so 20x20 isn't a square
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •