Advanced Search

Results 1 to 4 of 4

Thread: Can I disable the info box that contains the title attribute info?

  1. #1
    Join Date
    Jul 2010
    Location
    Bridport, Dorset
    Posts
    58
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Can I disable the info box that contains the title attribute info?

    Hi Guys and Girls,

    I have used the Cool DHTML Tooltip script to display some info once an image is hovered over.
    The trouble I'm having is there is a title attribute that pops up with the title info in my browser (Chrome) when the image is hovered on, so my Tooltip info and the title info overlaps...
    I need the title attribute as this triggers the lightbox for image display,
    and I would ideally only want my tooltip being displayed.

    So my question is: can I disable the info box appearing that contains the title info, and only show my tooltip information.

    Example is here: http://www.test.steptoes.co.uk
    You will need to add something to the basket, then hit home, then in the top right you will see my problem.

    Thanks for your time.
    Best Regards,
    Pete

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,627
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    well, you could remove the title from the hyperlink.

    Displaying the alt-text/title box is something browsers choose how do on their own; so there's not much you can do beyond that.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    If you want to keep that text in the lightbox caption you could try to rewrite the JS so it pulls the name attribute rather than the title and change the "title" to "name" in the "a".
    Corrections to my coding/thoughts welcome.

  4. #4
    Join Date
    Jul 2010
    Location
    Bridport, Dorset
    Posts
    58
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default

    Good thinking Bluewalrus... Ill give it a go!

    EDIT: Thanks! Worked like a charm.
    Last edited by lilpete; 07-22-2010 at 08:57 AM. Reason: Displaying Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •