• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

JavaScript

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
Oli2
Asked:
Oli2
  • 3
  • 2
1 Solution
 
seahpcCommented:
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
 
Oli2Author Commented:
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
 
cheekycjCommented:
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
cheekycjCommented:
BTW- the code is on the second page :)

CJ
0
 
Oli2Author Commented:
Thanx cheeky, I think it'll fit my needs.
0
 
cheekycjCommented:
your welcome :)


CJ
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now