单击手风琴时如何在悬停时更改图像背景?

How can I change image background on hover when clicking accordion?

我想在 toggling/clicking 手风琴项目时更改手风琴旁边的图像。 很抱歉,我无法提供任何代码,因为我不知道从哪里开始......提前致谢! 我的网站是:https://aviel-albo.com/services/ 该网站是希伯来语的,以防您问自己:)

<html>
<body>

<img onmouseover="otherImg(this)" onmouseout="normalImg(this)" border="0" src="https://cdn.shortpixel.ai/client/q_glossy,ret_img/https://aviel-albo.com/wp-content/uploads/elementor/thumbs/jordan-whitt-145327-unsplash-min-o7d1qu5enzt7olvmxk54flz05g93601jl1mzty5e78.jpg" width="132" height="132">

<p>The function otherImg() is triggered when the user moves the mouse pointer over the image.</p>
<p>The function normalImg() is triggered when the mouse pointer is moved out of the image.</p>

<script>
function otherImg(x) {
  x.src = "https://www.w3schools.com/jsref/smiley.gif";
 
}

function normalImg(x) {
  x.src = "https://cdn.shortpixel.ai/client/q_glossy,ret_img/https://aviel-albo.com/wp-content/uploads/elementor/thumbs/jordan-whitt-145327-unsplash-min-o7d1qu5enzt7olvmxk54flz05g93601jl1mzty5e78.jpg";
  
}
</script>

</body>
</html>