<style>
.nodesmall {
width: 50px;
height: 50px;
background: url("img/bgs.png") no-repeat -220px -51px;
position: fixed;
right: 10px;
top: 20%;
}
.nodesmall a {
display: block;
width: 50px;
height: 50px;
}
.erweima {
position: absolute;
right: 50px;
top: -40px;
}
.show {
display: block;
}
.hide {
display: none;
}
</style>
</head>
<body>
<div class="nodesmall" id="node_small">
<a href="#"></a>
<div class="erweima hide" id="er">
<img src="img/big_er.png" alt="">
</div>
</div>
<script src="learn2.js"></script>
<script>
var aObjs = my$("node_small").getElementsByTagName("a")[0];
aObjs.onmouseover = function () {
my$("er").className = "erweima show";
};
aObjs.onmouseout = function () {
my$("er").className = "erweima hide";
};
</script>
</body>
