Artikel ini menjelaskan metode penerapan tautan teks mouse hover prompt untuk efek khusus animasi oleh JS. Bagikan untuk referensi Anda. Metode implementasi spesifik adalah sebagai berikut:
Salin kode sebagai berikut: <! Doctype html public "-// w3c // dtd xhtml 1.0 transisi // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "konten-tipe" content = "text /html; charset = gb2312" />
<Title> js untuk mencapai tautan teks Mouse Hover Effect Prompt untuk Efek Animasi </iteme>
</head>
<body>
<Type style = "text/css">
<!-
.artikel {
Border-Bottom: Black 1px padat; Border-left: Black 1px padat; Border-Right: Black 1px padat; Border-Top: Black 1px padat; Filter: InvespenTrans (Transisi = 23, Durasi = 0,5) Blendtrans (Durasi = 0,5); Posisi: Absolute; Visibilitas: Tersembunyi
; Latar Belakang-Color: #FFCC00; Padding-top: 3px; Padding-Right: 3px; padding-bottom: 3px; Padding-left: 3px}
->
</tyle>
<Bahasa skrip = javascript1.2>
<!-
function show (divid) {
divide.filters.revealtrans.Apply ();
divide.style.visibility = "visible";
divide.filters.revealtrans.play ();
}
fungsi hide (divid) {
divide.filters.revealtrans.Apply ();
divide.style.visibility = "tersembunyi";
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)> rumah materi </a> </div>
<Div id = "BBB"> Home Material </Div> <br>
<a href = "#" onmouseover = show (ccc) onmouseout = hide (ccc)> pencarian baidu </a> </div>
<Div id = "ccc"> pencarian baidu </div>
</body>
</html>
Saya harap artikel ini akan membantu pemrograman JavaScript semua orang.