复制代码代码如下:
<!doctype html>
<html>
<头>
<meta charset =“ utf-8”>
<meta name =“描述” content =“ this” />
<meta name =“关键字” content =“ this” />
<title>此</title>
<script type =“ text/javascript” src =“ http://ajax.googleapis.com/ajax/libs/jquery/jquery/1.8.1/jquery.min.js”> </script>
<style type =“ text/css”>
身体{Margin:0; Padding:0;}
。 }
.hv {位置:绝对;左:0; top:0;显示:无; }
</style>
<脚本类型=“ text/javascript”>
$(function(){
$('。悬停')。悬停(
功能 (){
$('。hv')。stop()。fadeto('slow',1);
},功能() {
$('。hv')。stop()。fadeto('slow',0);
}
)
}))
</script>
</head>
<身体>
<div>
<img src =“ http://img.vip.xunlei.com/img/banner/20130318142424386268.jpg” width ='100px'高度='100px'>'>
<img src =“ http://www.baidu.com/img/shouye_b5486898c69898c692066bd2cbaeda86d744448.gif”
</div>
</body>
</html>