35 users online (2 members and 33 guests)  


  Results 1 to 3 of 3

Related

  1. Rollover images with text area    Forum: Javascript Forum
    Replies: 0
  2. Layout code - underlined text?    Forum: Myspace Forum
    Replies: 0
  3. Probably wrong area    Forum: Websites For Sale
    Replies: 0
  4. How to parse displayed text from HTML code?    Forum: CGI Perl Forum
    Replies: 3
  5. Spurious tab being inseted in text area    Forum: HTML Forum
    Replies: 3
  1. #1
    SwTaZnPnOi's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Location
    Hayward, 51o
    Posts
    3

    Exclamation TeXt-aReA bAcKgrOuNd cOdE

    Is there a code out there that will change the background of the textarea for the forms?? cause I really need to make my textarea's background color to change to black, and I also need a code to change the font type and font color for the textarea.




    edit: corrected spelling for the search engines
    Last edited by HTML; 08-29-2002 at 07:44 PM.

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Here you go -
    This should work, not 100% on some of the property names (I am at work, no books!) but try it and see what happens.
    Code:
    <textarea name="changeMe" onFocus="javascript: this.style.backgroundColor='000';this.style.text='fff';">
    </textarea>
    Last edited by HTML; 08-20-2002 at 02:51 PM.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316

    RE

    look up cascading style sheets, otherwise known as CSS. just type 'css textarea background' , 'css tutorials' or something in google.



Tags for this Thread