Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , , ,

Sponsored Links



Changing link color when moving mouse over link in HTML

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-01-2010
Member
 
Join Date: Dec 2009
Posts: 50
Changing link color when moving mouse over link in HTML

hello friend i am developing a web page for my self. I am not very much familiar about html but can develop a simple web page. The problem is that i am trying to make a hyper link on a text. By default the text appears blue before visiting the link and changes to pink after clicking on this link. please tell me is it possible Changing link color when moving mouse over link in HTML?
Reply With Quote
  #2  
Old 22-01-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
Re: Changing link color when moving mouse over link in HTML

Yes it is possible. The HTML is a powerful formatting language and you can do this in HTML using the anchor tag. One of the property of the anchor tag is known as "hover" , this property of the anchor tag can help you to change the color of the hyper linked text. You simply had to specify the color and you will get it.
Reply With Quote
  #3  
Old 22-01-2010
Member
 
Join Date: Dec 2009
Posts: 50
Re: Changing link color when moving mouse over link in HTML

Thank you very much for replying. I think that you have understood the whole problem and you have suggested me a good solution but it would be better if you provide me some example to achieve this If possible please provide the code to achieve this and also explain the code. Any further help would be appreciated.
Reply With Quote
  #4  
Old 22-01-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
Re: Changing link color when moving mouse over link in HTML

You can achieve this in a couple , you can use the LINK and VLINK attributes to the BODY tag as in <BODY LINK="green"> This will make the text link green before visiting to the more advanced style sheets, where you can have structures like:

a { color: green; text-decoration:none; }
a:hover { text-decoration: underline; }

This would give give you a green links and when you move the mouse over it it will get underlined.
Reply With Quote
  #5  
Old 22-01-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
Re: Changing link color when moving mouse over link in HTML

It seems to me as you will have to make use of the Cascading style sheets or CSS. Include the css in the head of your html document and use the anchor tag and its properties LINK and VLINK and set the desired color accordingly. You can also do it by using the hover attribute in your HTML document and change the link color
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #6  
Old 22-01-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Re: Changing link color when moving mouse over link in HTML

This is quiet simple problem and it is very easy to change the link color of certain link. You simply have to add STYLE="color:blue" to your anchor or a tag. where you can change the blue color to the color you want. after you implement this it will look like what i have given below:

<A HREF="destination-document.html" STYLE="color:blue">hyperlinked text</A>
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Changing link color when moving mouse over link in HTML"
Thread Thread Starter Forum Replies Last Post
How to link CSS into the HTML file? Zhankana_n Software Development 5 23-12-2009 03:02 PM
How to link documents in HTML Saaz Software Development 3 17-11-2009 01:40 PM
Link HTML and Powerpoint Connect_Me Software Development 3 08-04-2009 12:54 AM
VB6.0 link html page Taipai Software Development 3 26-01-2009 06:34 PM
Get D-Link moving on Vista Drivers Nick Vista Help 2 20-11-2006 09:56 PM


All times are GMT +5.5. The time now is 12:00 PM.