Is it possible to hide title when hovering image?

后端 未结 8 862
长情又很酷
长情又很酷 2020-12-21 18:30

This is my code:

\"\"

When I hover that image \"some title\" appears. Is it possib

8条回答
  •  独厮守ぢ
    2020-12-21 18:47

    Something I tried and worked with jQuery / jQuery UI on Chrome at least:

    1. Create the object you want (and don't want) to have a title.
    2. Once all these items exist, add a tooltip.
    3. Go through all items you don't want the tooltip displaying the usual way, and set the tooltip to ''.

    Example from my code, occuring after named HTML elements are available:

    jQuery(document).tooltip();
    for(var index = 0; index < sites.length; ++index) {
        jQuery('#' + sites[index][0]).attr('title', '');
    }
    

提交回复
热议问题