Display text on MouseOver for image in html

前端 未结 4 1837
春和景丽
春和景丽 2020-12-02 08:16

I would like to display text when the user mouseovers the image.

How can I do this in HTML/JS?

4条回答
  •  庸人自扰
    2020-12-02 08:48

    You can do like this also:

    HTML:

    
    

    In javascript:

    function somefunction()
    {
      //Do somethisg.
    }
    

提交回复
热议问题