<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="1.js"></script>
<style>
.box{
width:150px;
height:150px;
background: url(https://xn--xu0a.cn/api/tx) no-repeat ;
position:fixed;
right:10px;
top:40%;
}
.erweima{
position:absolute;
top:0;
right:150px;
}
.box a{
display:block;
width:50px;
height:50px;
}
.hide{
display:none;
}
.show{
display:block;
}
</style>
</head>
<body>
<div class="box" id="box">
<div class="erweima hide" id="er">
<img src="https://xn--xu0a.cn/api/dn" alt="" style="width: 500px;"/>
</div>
</div>
<script>
var box = my$("box");
var er = my$("er");
box.onmouseover = function(){
//er.className = "erweima show";
er.className = er.className.replace("hide","show");
};
box.onmouseout =function(){
//er.className = "erweima hide";
er.className = er.className.replace("show","hide");
};
</script>
</body>
</html>