Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2006, 06:21 PM
BlackVentur is offline BlackVentur
Registered User

Join Date: Mar 2005
Posts: 92

RollEyes How To Make All HTML Links All...

How can I make all my HTML links turn a certain color when you move your mouse over it? I know how to do it manually, but I really don't want to have to do that everytime I add a new link. Is there like a script you can put at the head of your HTML scripts area or something that will automactily do that for you? I know some HTML templetes I've used do what i'm trying to do, but I'm making my own templete from scrach.

Thanks

Hers a example site: www.fileplanet.com
Reply With Quote
  #2  
Old 02-10-2006, 06:28 PM
Capers is offline Capers
Registered User

Join Date: Oct 2003
Posts: 158

CSS is the answer :-)

Define css styles something like these in the head section of the html, or inside an already linked css file.

a:link {
color: #000000;
}
a:hover {
color: #660000;
}

Black text will turn red on hover.
__________________
Reply With Quote
  #3  
Old 02-10-2006, 07:30 PM
BlackVentur is offline BlackVentur
Registered User

Join Date: Mar 2005
Posts: 92

Can you give me the whole code, because for some reason this isn't working for me yet. Also, do I have to change my text to the color you set which is Black I believe for it to work?
Reply With Quote
  #4  
Old 02-10-2006, 07:43 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

PHP Code:
<style type="text/css">
a:link {
color#000000;
}
a:hover {
color#660000;
}
</
style
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #5  
Old 02-10-2006, 10:44 PM
BlackVentur is offline BlackVentur
Registered User

Join Date: Mar 2005
Posts: 92

what would I need to add to make it where, a line would be under it also when you roll your mouse over it?

Kinda like its underlined
Reply With Quote
  #6  
Old 02-10-2006, 10:49 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

<style type="text/css">
a:link {
color: #000000;
}
a:hover {
color: #660000;
text-decoration:underline;
}
</style>
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #7  
Old 02-11-2006, 12:44 PM
BlackVentur is offline BlackVentur
Registered User

Join Date: Mar 2005
Posts: 92

ok i'll try that.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Links Dragon-SC- Sigs and Graphics 3 06-06-2006 12:44 PM
html Gfx Man Sigs and Graphics 3 07-31-2005 12:06 AM
HTML Help nuCkle Web design and Programming 8 06-17-2005 09:28 PM
Html GeeFuss Web design and Programming 7 12-20-2004 07:35 AM
HTML? EDGE Web design and Programming 3 09-01-2003 08:13 PM


All times are GMT -5. The time now is 05:55 AM.




Powered by vBulletin®