Can i stop or start the html marquee when hovering on the images which are arranged in that marquee?

前端 未结 3 442
眼角桃花
眼角桃花 2021-01-26 04:50

Can i stop or start the html marquee when hovering on the images which are arranged in that marquee?

3条回答
  •  攒了一身酷
    2021-01-26 05:07

    Normally you would use this.Stop() and this.Start() on mouseover and mouseout. You can also do this on the child elements and use this.parentNode.Stop() and this.parentNode.Start(). Then the marquee will stop if you only hover the child elements.

    In the example of the other answer this would be the image tag:

    
    

    You can remove the mouseover and mouseout from the marquee tag, you don't need them any more.

提交回复
热议问题