Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question change font color textarea

    I am trying to figure out how to change certain text's font color, in the text area. I have been looking everywhere, but I haven't found a solution.
    Any help would be great,
    thanks,
    mazzzzz

  • #2
    Regular Coder
    Join Date
    May 2008
    Location
    Lost in Localhost...
    Posts
    702
    Thanks
    3
    Thanked 43 Times in 42 Posts
    Quote Originally Posted by mazzzzz View Post
    I am trying to figure out how to change certain text's font color, in the text area. I have been looking everywhere, but I haven't found a solution.
    Any help would be great,
    thanks,
    mazzzzz
    Code:
    textarea {
    color: #FFF;
    }

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    If you mean to change one word inside of a textarea so it is different than the rest, you can not do that.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #4
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah that what I meant, that sucks. is there some way then have an effect similar?

  • #5
    Senior Coder
    Join Date
    Jul 2003
    Location
    My pimped-out igloo in Canadia
    Posts
    1,966
    Thanks
    36
    Thanked 0 Times in 0 Posts
    couldn't you parse through the entered text and search for a given word?
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes :)

  • #6
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,461
    Thanks
    11
    Thanked 600 Times in 580 Posts
    you can use a <pre> instead.
    you wont be able to change it like a textbox.

    note though that IE, FF3, opera, and safari all now support contentEditable.
    heres what used to be an IE-only demo
    Last edited by rnd me; 09-29-2008 at 03:56 AM.
    my site (updated 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%

  • #7
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I could work, an example would of course be great .

    Thanks for the help so far,
    mazzzzz

  • #8
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,866
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Or you could use some RTE
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #9
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    change font color textarea

    You can change the font color of text area dynamically..
    textArea.htmlText = '<font color = "#colorvalue">' + text + '</font>'

  • #10
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,314
    Thanks
    203
    Thanked 2,564 Times in 2,542 Posts
    Quote Originally Posted by sanjeevcodes View Post
    You can change the font color of text area dynamically..
    textArea.htmlText = '<font color = "#colorvalue">' + text + '</font>'
    Yes, but not part of the text.


  •  

    Posting Permissions

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