Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

tag text bgcolor to change

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
how can i change the background color of<a href=xyz> anchor text</a> when mouse is over it.
thanks,
sridevi
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SriDevi,
The following will do the trick. But works in IE only.
regds
maha anna


[This message has been edited by maha anna (edited March 20, 2001).]
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"sridevi",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In IE and Netscape you can do this:
<A HREF="http://my.yahoo.com"; OnMouseOver="this.style.color='red'" OnMouseOut="this.style.color='black'">my.yahoo.com</A>
 
sridevi sangaiah
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
thanks. it worked.

Originally posted by maha anna:
[B]SriDevi,
The following will do the trick. But works in IE only.
regds
maha anna


[This message has been edited by maha anna (edited March 20, 2001).][/B]


 
sridevi sangaiah
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
this way of doing it changes the color of the text and not the background of the text.
thanks,
sridevi

Originally posted by Bodie Minster:
In IE and Netscape you can do this:
<A HREF="http://my.yahoo.com"; OnMouseOver="this.style.color='red'" OnMouseOut="this.style.color='black'">my.yahoo.com</A>


 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doh! Sorry, I misread your question.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should check out cascading style sheets, they can do all kinds of nify things, and you dont have to put 30000 <FONT> tags, or bgcolor attributes...

what you want to do is called hovering, i think....
[This message has been edited by Ruyard Kipling (edited April 26, 2001).]
 
Could you hold this kitten for a sec? I need to adjust this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic