[英]How can I change image background on hover when clicking accordion?
I want to change the image next to the accordion when toggling/clicking the accordion items. 我想在切换/单击手风琴项目时更改手风琴旁边的图像。 I am sorry I can't provide any code because I just don't know where to start... Thanks in advance!
对不起,我无法提供任何代码,因为我只是不知道从哪里开始。 My site is: https://aviel-albo.com/services/ The site is in Hebrew, in case you ask yourself :)
我的网站是: 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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.