Log in

View Full Version : Can I disable the info box that contains the title attribute info?



lilpete
07-21-2010, 04:28 PM
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

traq
07-21-2010, 04:50 PM
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.

bluewalrus
07-21-2010, 04:59 PM
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".

lilpete
07-22-2010, 08:30 AM
Good thinking Bluewalrus... Ill give it a go! :)

EDIT: Thanks! Worked like a charm.