Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Thickbox – hide title on image hover

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27304
    skinnyalbert
    Member

    Hi all,

    I’m using thickbox.js for a lightbox style image gallery. I’ve added much to the "title" option in the static html so that it can display several lines of styled info when activated. The issue is that this code displays when you roll over the thumbnail of the gallery (i.e. the image that calls thickbox and includes the title that is passed along.

    Is there a way to tell browsers not to display the title when hovering over an image, or would I be forced to somehow change what is passed along to thickbox? I’ve seen users of a different lightbox use the option to change the variable.. but I’m having trouble doing this. Has anyone worked this out in the past?

    Thanks!

    #68548
    BaylorRae
    Member

    You could swap the text from the title attribute with the alt attribute and vice versa. Then tell the lightbox plugin to pull the description from the alt attribute.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.