Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22487

    Hello,

    I am using the built in slideshow option on a few pages of a project using Incarnation. I have loaded only a single image and prevented any URL linking, but for some reason, the image’s title is displayed when you hover over the image.

    I would like to prevent that from happening. How can I accomplish this?

    example: http://worldchampions.org/give-online/

    thanks

    Neil Heird

    #115941

    Unfortunately that’s not a theme feature but a standard browser behavior. You can try to use a javascript script which will remove the title/attribute when the user hovers over the image. Open up incarnation/js/avia.js and at the very bottom insert:

    jQuery(document).ready(function(){
    jQuery('a,img').inohideTips();
    });

    (function($){
    $.fn.inohideTips = function(){
    return this.each(function(){
    var $elem = $(this);
    var savealt = '';
    var savetitle = '';

    $elem.hover(function(){
    if ( typeof $elem.attr('alt') != "undefined" ){
    var savealt = $elem.attr('alt');
    $elem.removeAttr('alt');
    }

    if ( typeof $elem.attr('title') != "undefined" ){
    var savetitle = $elem.attr('title');
    $elem.removeAttr('title');
    }

    },function(){
    if ( savetitle )
    {
    $elem.attr({title:savetitle});
    }
    if ( savealt )
    {
    $elem.attr({alt:savealt});
    }
    });
    });
    };
    })(jQuery);

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to prevent IMG TITLE from being displayed on rollover of slideshow’ is closed to new replies.