Hallo.
Ich weiß nicht ob ich das jetzt auf die schnelle so richtig verstanden habe. Meinst du vielleicht das hier?
<style>
.an
{text-decoration: underline overline; color: blue;}
.aus
{text-decoration: none; color: black;}
</style>
</head>
<body>
<a href="#" class="aus" onMouseOver="this.className ='an'" onMouseOut="this.className ='aus'">
Dies ist ein Testlink</a>
</body>
</html>
Viel Spaß dann noch.
Tschau holger_b