This article describes the method of implementing text link mouse hover prompts for animation special effects by js. Share it for your reference. The specific implementation method is as follows:
Copy the code as follows:<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>js to achieve text link mouse hover prompt effect for animation effect</title>
</head>
<body>
<STYLE type="text/css">
<!--
.article {
BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); POSITION: absolute; VISIBILITY: hidden
; background-color: #FFCC00; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px}
-->
</STYLE>
<SCRIPT language=JavaScript1.2>
<!--
function Show(divid) {
divide.filters.revealTrans.apply();
divide.style.visibility = "visible";
divide.filters.revealTrans.play();
}
function Hide(divid) {
divide.filters.revealTrans.apply();
divide.style.visibility = "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 Search</a></div>
<div id="ccc">Baidu search</div>
</body>
</html>
I hope this article will be helpful to everyone's JavaScript programming.