how to get color value of character

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mukeshrasm
    Contributor
    • Nov 2007
    • 254

    how to get color value of character

    Hi

    I want to find the color vaule of text which is of different color when user will move mouse on the text/charector.It should display its color value in RGB format.
    like

    Code:
    <p>Hello Muksh Kumar. Welcome to thescripts.com!
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    This is not HTML/CSS related. Please ask in our JavaScript section.

    Thanks, Death

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      Not sure whether he actually means "set" the color or "get" the color. Setting it can be done with CSS but not getting.

      Comment

      • Death Slaught
        Top Contributor
        • Aug 2007
        • 1137

        #4
        You may be right, but I thought he wanted it so that when the user moves the mouse onto the text (hover), a small pop-up appears displaying the RBG value of that text.

        Thanks, Death

        Comment

        • mukeshrasm
          Contributor
          • Nov 2007
          • 254

          #5
          Originally posted by Death Slaught
          You may be right, but I thought he wanted it so that when the user moves the mouse onto the text (hover), a small pop-up appears displaying the RBG value of that text.

          Thanks, Death
          Hi

          I wanted like that as you told so how it can be possible. Though I have posted it in Javascript Forum.

          Comment

          • Death Slaught
            Top Contributor
            • Aug 2007
            • 1137

            #6
            Your best bet is to use JavaScript. Give it some time and someone will answer your question.

            Thanks, Death

            Comment

            • gits
              Recognized Expert Moderator Expert
              • May 2007
              • 5388

              #7
              here again the link to the javascript thread with an starting idea for the solution ...

              kind regards

              Comment

              • Death Slaught
                Top Contributor
                • Aug 2007
                • 1137

                #8
                lol, and once again gits comes along with an answer ^_^

                Comment

                Working...