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

解决方案 »

  1.   

    过javascript版问吧,估计回复的人能给你几十种效果 
      

  2.   


    <img src="图片地址1" onmouseover="this.src='图片地址2'" onmouseout="this.src='图片地址1'" />
      

  3.   

    <!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>
      

  4.   

    http://bbs.blueidea.com/thread-3030145-1-1.html