|
|
|
|
![]() ![]() |
Apr 1 2005, 06:32 PM
Post
#1
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
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>? |
|
|
|
Apr 2 2005, 01:08 AM
Post
#2
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 661 Joined: 10-January 05 Member No.: 3,189 |
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; } |
|
|
|
Apr 6 2005, 09:56 PM
Post
#3
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
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> |
|
|
|
Apr 7 2005, 03:39 PM
Post
#4
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
Thank you beeseven
|
|
|
|
Apr 7 2005, 03:44 PM
Post
#5
|
|
|
Moderator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,325 Joined: 8-March 05 From: Mawson, Antarctica Member No.: 4,254 |
Remember to post back whether it works or not, so I can close this topic
|
|
|
|
Apr 9 2005, 12:03 PM
Post
#6
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 535 Joined: 14-February 05 From: Oslo, Norway Member No.: 3,759 |
Ok! It works well here, I just forgot something so I got alot of errors, but it works now
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 12th October 2008 - 09:01 PM |