Dieser Artikel beschreibt die Methode zur Implementierung von HOVER -Eingabeaufforderungen für Textverbindungen für Animationsspezialeffekte durch JS. Teilen Sie es für Ihre Referenz. Die spezifische Implementierungsmethode lautet wie folgt:
Kopieren Sie den Code wie folgt: <! DocType html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<kopf>
<meta http-äquiv = "content-type" content = "text /html; charset = gb2312" />
<title> js, um Textverbindungs -Maus -Hover -Eingabeaufforderungseffekt für Animationseffekt </title> zu erreichen
</head>
<body>
<Style type = "text/css">
<!-
.Article {
Grenzboden: Black 1px fest; Border-Links: Black 1px fest; Grenzrechte: Black 1px Solid; Grenze: Schwarz 1PX Solid; Filter: Discoustrans (Übergang = 23, Dauer = 0,5) Blendtrans (Dauer = 0,5); Position: absolut; Sichtbarkeit: versteckt
; Hintergrundfarbe: #ffcc00; Padding-Top: 3px; Padding-Right: 3px; Padding-Bottom: 3px; Padding-Links: 3px}
->
</Style>
<Script Language = JavaScript1.2>
<!-
Funktionshow (divid) {
divide.filters.revealtrans.apply ();
Divide.Style.vissibility = "sichtbar";
divide.filters.revealtrans.play ();
}
Funktion ausblenden (divid) {
divide.filters.revealtrans.apply ();
Divide.Style.vissibility = "Hidden";
divide.filters.revealtrans.play ();
}
//->
</script>
<a href = "#" onmouseover = show (aaa) onmouseout = hide (aaa)> wulin.com </a> </div>
<div id = "aaa"> wulin.com </div> <br>
<a href = "#" onmouseover = show (bbb) onmouseout = hide (BBB)> Material Home </a> </div>
<div id = "bbb"> Material Home </div> <br>
<a href = "#" onmouseover = show (ccc) onmouseout = hide (CCC)> Baidu -Suche </a> </div>
<div id = "ccc"> baidu such </div>
</body>
</html>
Ich hoffe, dieser Artikel wird für JavaScript -Programme aller hilfreich sein.