l2u — 2011-08-22T17:36:04-04:00 — #1
I have an image slide gallery (jquery cycle) with alt tags, covered with 2 divs for moving forward and back. It appears that since the div covers image, the image alt tag won't be displayed when I hold the cursor over the image.
How could I solve this issue so that alt tag would show up normally like without divs?
Thanks for help
felgall — 2011-08-22T17:46:50-04:00 — #2
lpcstr — 2011-08-22T19:46:53-04:00 — #3
He's probably working with Internet Explorer. IE6 and 7 display alt as a tooltip. Suffice it to say that using the alt attribute this way is wrong.
Same goes for the title attribute. It's also wrong to assume that the title attribute is a mechanism for generating a tooltip. It's simply more common in the case of title than it is for alt.
l2u — 2011-08-23T04:50:21-04:00 — #4
felgall — 2011-08-23T05:32:19-04:00 — #5
To fix the IE bug you simply need to include title="" in your images as well as the mandatory alt attribute. Then IE will behave the same as other browsers.