HTML Code to Change Text Mouse Over or Hover???

Posted on 2011-02-26
Last Modified: 2012-05-11
I have a basic webpage that was created with Yahoo Sitebuilder.  I am using Text to navigate the various pages (Home, Projects, Experience and Contact Us).  What I'm trying to do is add HTML code to the existing Text Links code to change the text color on Mouse Over or Hover.   The Sitebuilder code will allow additional HTML codes Before, Inside or After the code automatically generated to create the Text link to the various pages as shown in the image below.

I've tried adding the HTML below in the Before, Inside and After to no avail.

<style type="text/css">
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: red;}

Any help will be appreciated.

Question by:Eric Sherman
  • 3

Expert Comment

ID: 34988546
a:link {text-decoration: none}
a:visited {text-decoration: none}
a:active {text-decoration: none}
a:hover {text-decoration: underline; color: red;}

Open in new window

Does it work with lowercase a?
LVL 19

Author Comment

by:Eric Sherman
ID: 34988628
Thanks for the reply florjan ..

After further testing, here's what I'm getting ...

1.) I think I need to put that HTML code in the Page format rather than trying to include it with each of the text links.

2.) For the text links on the page that were created with Sitebuilder and left in their original state (meaning typical hyperlink blue and underline) the code seems to work on that page.

3.) The navigation buttons on the top of the page (Home, Projects, Experience and Contact Us) I changed their default color to white because they are sitting on a blue background and the default link color of blue will make it hard to see them.  For those, the hover event will not change the color from white to red but it will underline them on mouse over.

4.) I noticed where all hyperlinks on the page with that additional HTML code included will display without the underline as they are formatted to do so.

LVL 19

Accepted Solution

Eric Sherman earned 0 total points
ID: 34999170
Ok, I was originally thinking there was some basic HTML code out there that I could modify to accomplish this which is not the case.  

I found this DHTML menu generator that did the trick and actually builds some pretty neat Javascript web navigation menus for which you can easily incorporate on your website.

Thanks to all that replied to my original question.

LVL 19

Author Closing Comment

by:Eric Sherman
ID: 35042615
I found this DHTML menu generator that did the trick and actually builds some pretty neat Javascript web navigation menus for which you can easily incorporate on your website.

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now