Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Form Highlight?
Amezis
post 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>?
Go to the top of the page
 
+Quote Post
whyme
post 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;  }
Go to the top of the page
 
+Quote Post
beeseven
post 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>
Go to the top of the page
 
+Quote Post
Amezis
post 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 biggrin.gif i'll try it
Go to the top of the page
 
+Quote Post
snlildude87
post 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 smile.gif
Go to the top of the page
 
+Quote Post
Amezis
post 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 smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Free Windowsxp Sp2 Cd From Microsoft(13)
  2. *** Click Here To Get Your Free Hosting ***(1)
  3. Form To Php Mail. Attachment(14)
  4. Loop Through Form(8)
  5. How To Make A Search Form And Php Code?(10)
  6. Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?(8)
  7. Problem With Java Script Popup Form(1)
  8. What Is A Computer Form Factor(1)
  9. Php Ftp Upload Form(1)
  10. Controlling Differents Keypresses In A Single Form(0)
  11. I Liked This Form Builder(4)
  12. Updating Php File Through A Web Form(5)
  13. Brand New Motherboard Form Factor Coming Out?(2)
  14. Form Not Returning Correct Email Address(5)
  15. How To Make Form Nested In Internet Explorer ?(2)
  1. Html Form!(4)
  2. Registration Form?!(6)
  3. Help With Form Actions.(1)
  4. Gahhh This Isn't Going Well Please Help!(12)
  5. Application Form [approved](2)
  6. Vb 2008 Linking To Another Form..(0)
  7. Perl For Automated Web Form Search(1)
  8. Design A Contact Form In Flex Part 1(0)
  9. Text Size In "fill-in" Form Blanks(2)
  10. About Posting Form(2)
  11. Design A Contact Form In Flex Part 2(0)
  12. Design A Contact Form In Flex Part 3(2)
  13. Submitting A Form In Flex (follow Up Of Sm's Tut)(2)


 



- Lo-Fi Version Time is now: 12th October 2008 - 09:01 PM