• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tag text bgcolor to change

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Doh! Sorry, I misread your question.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic