Solved

JavaScript

Posted on 1999-01-06
6
128 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now