Forum Moderators: travelin cat

Message Too Old, No Replies

Highlighting text

         

chaitanya

12:49 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



Hi,

Is there a way through DHTML or any other tool that i can create highlighting effect for text & images when the user selects the text or graphic?

would someone help me out...

--Chaitanya

aaronjf

3:56 am on Aug 5, 2003 (gmt 0)

10+ Year Member



Cascading Style Sheets

a:hover { background: #ffffcc;text-decoration: underline;}

chaitanya

5:10 am on Aug 5, 2003 (gmt 0)

10+ Year Member



Ya ofcourse this can be used for text but how abt images/graphics

pageoneresults

5:24 am on Aug 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Transparent .gifs along with aaronjf's suggestion above. You can also give them an a:active state. If the images are .jpgs, then you cannot produce the effect of the transparent gif and a:hover.

chaitanya

8:28 am on Aug 5, 2003 (gmt 0)

10+ Year Member



i didn't understood what u meant to say.. can u b a little bit more clear?

aaronjf

7:26 pm on Aug 5, 2003 (gmt 0)

10+ Year Member



a:link img {border-color: #00f}

Although I have never tried this. It is supposed to work.

<added> this really is a question that belongs in the CSS or Webmaster General Section</added>

aaronjf

7:41 pm on Aug 5, 2003 (gmt 0)

10+ Year Member



Sorry, wrong coding. Should have been.

a:hover img {border: solid #FF0000;}