📜  javascript 在鼠标悬停时交换图像 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:56.493000             🧑  作者: Mango

代码示例1
function rollover(my_image)
        {
    
            my_image.src = 'images/costAnalysisBtn2.png';
    
        }
function mouseaway(my_image)
        {
    
            my_image.src = "images/costAnalysisBtn1.png";
    
        }
onmouseover="rollover(this)" onmouseout="mouseaway(this)"