hover effect, presumably we are not unfamiliar with it, next for you to introduce the use of JS imitation hover, interested friends can refer to the following
The code is as follows: <! DOCTYPE html> <html> <head> <meta charset= "Utf-8" > <meta name= " Description "content=" This "/> <meta name=" keywords "content=" this "/> <title>this</ title> <script type= "Text/javascript" src= "HTTP://AJAX.GOOGLEAPIS.COM/AJAX/LIBS/JQUERY/1.8.1/" Jquery.min.js "></script> <style type=" Text/css "> body{margin:0;padding:0;} hover{float:left;position:relative;margin:0 auto;padding:0;} Hv{position:absolute; left:0;top:0;display:none;} </style> <script type= "Text/javascript" > $ (function () { $ ('. Hover '). Hover ( function () { $ ('. HV '). Stop (). Fadeto (' slow ', 1); },function () { $ ('. HV '). Stop (). Fadeto (' slow ') , 0); } ) }) </script> </head> <body> <div class= " Hover "> <img src=" 201303181424386268.jpg "alt=" "width= ' 100px ' height= ' 100px ' > <img class= "HV" src= "shouye_b5486898c692066bd2cbaeda86d74448.gif" alt= "width= ' 100px ' height= ' 100px ' > </div> </body> </html>