| | 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>? |
|
|
You would use CSS to achieve that effect.
CODE 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; }
He said he wanted to highlight the contents of a textarea, not highlight a link.
Here's some code that'll do it: CODE <form method="post" name="highlight">
<textarea name="textarea" cols="#" rows="#" onClick="textarea.select();">your content goes here</textarea> </form> |
|
![]() Form Highlight? |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|