Amezis 0 Report post Posted April 1, 2005 I have a code on my webpage: "link to us", and a text area where the code is... Anyway, when the user click in the text area, is there a code to highlight the content?Something like <textarea style="highlight"></textarea>? Share this post Link to post Share on other sites
whyme 0 Report post Posted April 2, 2005 You would use CSS to achieve that effect. a:link { COLOR: #000000; TEXT-DECORATION: none; font-weight: bold; }a:visited { COLOR: #000000; TEXT-DECORATION: none; font-weight: bold; }a:hover { COLOR: #ffffff; TEXT-DECORATION: none; BACKGROUND-COLOR: #000000; font-weight: bold; }a:active { COLOR: #ffffff; TEXT-DECORATION: none; font-weight: bold; BACKGROUND-COLOR: #000000; } Share this post Link to post Share on other sites
beeseven 0 Report post Posted April 6, 2005 He said he wanted to highlight the contents of a textarea, not highlight a link.Here's some code that'll do it: <form method="post" name="highlight"><textarea name="textarea" cols="#" rows="#" onClick="textarea.select();">your content goes here</textarea></form> Share this post Link to post Share on other sites
Amezis 0 Report post Posted April 7, 2005 Thank you beeseven i'll try it Share this post Link to post Share on other sites
snlildude87 0 Report post Posted April 7, 2005 Remember to post back whether it works or not, so I can close this topic Share this post Link to post Share on other sites
Amezis 0 Report post Posted April 9, 2005 Ok! It works well here, I just forgot something so I got alot of errors, but it works now Share this post Link to post Share on other sites