html mouse over text

Jun 8, 2008
43
0
0
I need to make some changes to some webpages. If you go to mst.edu and scroll down there are different options to choose from. When you scroll your mouse over one the text changes from gray to a green color. Does anyone know the code for this?
 
Jun 8, 2008
43
0
0
I'm pretty much a n00b at all this. I've been working with documentum but now just recently started digging into the html aspect. Will css be fine to use with documentum or will there be a problem? Or am I just confusing you?
 

911paramedic

Diamond Member
Jan 7, 2002
9,450
1
76
#globalNav a:link, #globalNav a:visited {
font-weight: bold;
text-decoration: none;
color: #736343;
}

#globalNav a:hover, #globalNav a:active {
font-weight: bold;
text-decoration:none;
color: #fff4d7;
background-color:#c7a24c;
}

This isn't the exact target, but it shows what's happening. The normal state is one color (the link), and when you hover over it it changes to another color. You will be dealing with some li attribute as opposed to the globalNav div.
 

911paramedic

Diamond Member
Jan 7, 2002
9,450
1
76
For the front page, in the main area, this is the code you want I believe:

#pageContentArea2full .type1contentbox a:link,#pageContentArea2full .type1contentbox a:visited{
color:#797977;
text-decoration:underline;
}

#pageContentArea2full .type1contentbox a:hover,#pageContentArea2full .type1contentbox a:active{
color:#085806;
text-decoration:underline;
}
 

TeamZero

Senior member
Apr 14, 2004
519
0
0
Since you still lack a good explanation, I'd recommend you go read a beginning CSS tutorial.

Here's the quick and dirty


Your links need to be assigned a class, like so:
<a href="http://mylink.com" class="coloredLinks">LINK</a>


You then need to tell the browser what to do with this class:

<style type="text/css">
.coloredLinks{
color:blue;
}

.coloredLinks:hover{
color:red;
}
</style>

Replace the blue with the color or hex code of the color you want the links to be naturally, and the red with the color or hex code you want the links to be when you hover over them.

If you want to remove the underline, the classes would look like this:

<style type="text/css">
.coloredLinks{
color:blue;
text-decoration:none;
}

.coloredLinks:hover{
color:red;
text-decoration:none;
}
</style>



 

911paramedic

Diamond Member
Jan 7, 2002
9,450
1
76
Originally posted by: TeamZero
Since you still lack a good explanation, I'd recommend you go read a beginning CSS tutorial.

You don't need a class to do this. It's an ul that is already inside a div. Just use the div and then ul li a:link followed by whatever color you want and you are done.

I suggest w3schools for a tutorial on in, very good. And remember, the order is VERY important. In order for it to work, it has to be:
:link
:visited
:hover
:active
:focus

some of those can be grouped, like visited and hover.

This is a simple thing to do in CSS, however it really gets confusing when you have lots of links with different colors.

Feel free to drop me a PM if you need help.
 

TeamZero

Senior member
Apr 14, 2004
519
0
0
My explanation was from scratch, and the easiest way to do it. Why are you assuming his links are already going to be in a UL or DIV?

The links on that page already work fine, so he's using them as an example, not asking how to change those specific links

Unless I'm totally incorrect and he really was talking about editing that page, in which case the question was really poorly phrased.
 

Woosta

Diamond Member
Mar 23, 2008
3,006
0
71
^ Because you're promoting classitus and unsemantic class names, which should be avoided. Better to use the document hierarchy to your advantage, and no need to bloat the markup with useless bytes, ugly stylesheet filled with class names (puke), using descendant selectors makes it more readable and you know where exactly those links are when moving from stylesheet to markup, back and forth.

W3 schools should be avoided at all costs, just take a look at their godamn markup (horrible mess) - you should be reading w3.org css specs

that's just the hover tag in your links description. Just download the css and you can reverse engineer:

Hover tag? :hover pseudo class of the anchor element you mean?
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |