Solved

JavaScript

Posted on 1999-01-06
6
133 Views
Last Modified: 2013-11-19
I need to know how to change the Font Style of a Link in the MouseOver Event.
I know how to do this with graphics, but not with Text.

0
Comment
Question by:Oli2
  • 3
  • 2
6 Comments
 
LVL 2

Expert Comment

by:seahpc
ID: 1841411
Try using Stylesheets for that :


<style type="text/css">
<!--
 A:link    { COLOR: #0000FF; TEXT-DECORATION: underline; font-weight: normal }

 A:visited { COLOR: #FF0000; TEXT-DECORATION: underline; font-weight: normal }

 A:active  { COLOR: #0000FF; TEXT-DECORATION: none }

 A:hover   { COLOR: #000000; TEXT-DECORATION: none; font-weight: Bold}
-->
</style>

0
 
LVL 1

Author Comment

by:Oli2
ID: 1841412
Sorry, seahpc, but I allready tried that. It doesn't work. At least with Netscape 4.05 it doesn't.
Here's my test:


<HTML>
<style type="text/css">
    <!--
     A:link    { COLOR: #0000FF; TEXT-DECORATION: underline; font-weight: normal }

     A:visited { COLOR: #FF0000; TEXT-DECORATION: underline; font-weight: normal }

     A:active  { COLOR: #0000FF; TEXT-DECORATION: none }

     A:hover   { COLOR: #000000; TEXT-DECORATION: none; font-weight: Bold}
    -->
    </style>
<BODY>
<A HREF="bla.html">Bla</A>
</BODY>
</HTML>

doesn't work.

Greetings, Oli

0
 
LVL 19

Accepted Solution

by:
cheekycj earned 50 total points
ID: 1841413
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 19

Expert Comment

by:cheekycj
ID: 1841414
BTW- the code is on the second page :)

CJ
0
 
LVL 1

Author Comment

by:Oli2
ID: 1841415
Thanx cheeky, I think it'll fit my needs.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 1841416
your welcome :)


CJ
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select case on click 3 21
Alert after MVC form submitted 1 22
Html value of radio 14 30
Powershell script does not exit 4 29
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

827 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