This article describes the method of javascript sensing the transparency display of mouse images. Share it for your reference. The specific implementation method is as follows:
Copy the code as follows: <html>
<title>Sensing the image transparency display effect of the mouse</title>
<head>
<script language="JavaScript1.2">
function makevisible(cur, which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}
</script>
</head>
<body>
<a href="whatever.htm"><img src="/images/banner.gif" border=0 style="filter:alpha(opacity=20)" onMouseover="makevisible(this,0)" onMouseout="makevisible(this,1)"></a>
</body>
</html>
I hope this article will be helpful to everyone's JavaScript programming.