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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

691 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