JavaScript DHTML/Javascript Properties/textDecoration

Материал из Web эксперт
Перейти к: навигация, поиск

Change text decoration in mouse out/in events

   <source lang="html4strict">

<html> <head> <title>A Simple Page</title> <script language="JavaScript"> function addunderline() {

   head1.style.textDecoration = "underline"

} function removeunderline() {

   head1.style.textDecoration = "none"

} function addoverline() {

   head1.style.textDecoration = "overline"

} </script> </head> <body>

Welcome to this page!

</body> </html>

 </source>