Change image on hover

前端 未结 9 673
鱼传尺愫
鱼传尺愫 2020-12-03 03:02

How can I change this exact code to do the hovering effect on mouseover?

I tried following some of the other questions and answers, but I could not really follow the

9条回答
  •  余生分开走
    2020-12-03 03:42

    Try the following code. It's working

    
    
        
            
            Untitled Document

     

     


    I modified the code, like it will work with some delay in it.. But still, it is not animating..

    function changeImage(img){
        // document.getElementById('bigImage').src=img;
        setTimeout(function() {document.getElementById('bigImage').src=img;},1250);
    }
    

提交回复
热议问题