I love the plugin! However, on IE 7 for some reason I'm not getting expected results. Works fine in Firefox. I link to the original lots of times so that the user can click on the image and go to the larger version. However, In ie 7, only when using the caption, the image has the link and the caption is underlined and appears to be a link, but when you mouse over it, you can't click on it and the cursor does not change to a hand indicating that a user has reached a link. Any ideas? If I take off the caption by not selecting that class the link works fine. Here's the html.
Chris
Works fine if do this
but then of course I don't get the caption. :) Probably something silly. Thanks for any input.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | image_caption.zip | 432 bytes | shane birley |
Comments
Comment #1
nognielsen commentedwhoops, here's the html code
Comment #2
dman commentedI suspect your problem is that -
For possibly the first time in History, IE is getting it right.
The client-side annotation wraps the image in a DIV,
This produces something like
This is illegal markup, and (IFF you are using XHTML-strict) the browser would be right to disable the link behaviour! ...Although the style rendering may still be in effect in your case :-)
When I did something similar - inspired by image caption - I ended up having to use SPANs to do the wrapping, then
to re-apply the effect.
Comment #3
davidwhthomas commented@dman: Yes, that makes sense, thanks.
I haven't really tested the idea of having hyperlinked captioned images and they would be 'divs' inside 'a' tags which is probably not good markup.
It would depend a bit on your site's DTD how the browser responds.
regards,
DT
Comment #4
tobiass commentedHi
@davidwhthomas: Are you going to correct this in the next release or could you shortly say how to repair this behaviour ourself to get rid of this? Perhaps via css?
Thank you
Comment #5
davidwhthomas commentedI'm about to go on an overseas trip, back in two weeks.
I'm planning on releasing an update that should resolve this issue then.
regards,
DT
Comment #6
tobiass commentedJust wanted to ask how your overseas trip was and how far you got in tracking down this issue.
regards,
Tobi
Comment #7
davidwhthomas commentedthis should be fine now, or else try the D6 version.
Comment #9
Anonymous (not verified) commentedI can confirm that image-caption does not create a clickable image link in IE 6.02
Modifying image_caption.js according to the comments above
(this).wrap("<div class=\"image-caption-container\" style=\"float:" + alignment + "\"></div>");to
$(this).wrap("<span class=\"image-caption-container\" style=\"float:" + alignment + "\"></span>");seems to work.
Comment #10
shane birley commentedI am posting a fix to the javascript that was not allowing the text to display properly in any version of IE.
Comment #11
shane birley commented