日期:2014-05-16  浏览次数:20358 次

这个谁会啊?求代码




本来是第一张图的,鼠标移上去就成第二张图的效果,这个怎么弄的?求代码。
php js

------解决方案--------------------
<!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=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.js"></script>
<script language="javascript">
$(function(){
 $(".warp >img").mouseover(function(){
   $(this).animate({"top":-41});
  }).mouseout(function(){
   $(this).animate({"top":0});
  });
});
</script>
<style typt="text/css">
.warp{position:absolute;width:170px;height:41px;overflow:hidden;border:1px #000 solid;}
.con{position}
</style>
<body>
<div class="warp">
<img src="http://www.forasp.cn/images/logo2.gif" style="width:170px;height:82px;position:relative;" />
</div>
</body>
</html>