Forum Moderators: open
I'm experiencing a very stange problem when displaying images with a hyperlink in Internet Explorer.
For exmaple if I have the following it works,: -
<img src="images/profiles/thumb_HT02849927779F.jpg" />
If I have this:
<a href="images/profiles/HT02849927779F.jpg"><img src="images/profiles/thumb_HT02849927779F.jpg" /></a>
Then no images is displayed. If I look at the HTML I have this: -
<a href="images/profiles/HT02849927779F.jpg">
</a>
So it's actually removed the image tag - very odd me thinks!
If I have this code: -
<img src="images/profiles/thumb_HT02849927779F.jpg" />
<a href="images/profiles/HT02849927779F.jpg"><img src="images/profiles/thumb_HT02849927779F.jpg" /></a>
Then both images are displayed! I guess because the image is being cached from the first <img> tag.
Does anyone have a clue what's going on here, cos I haven't the faintest. What's even stranger is this problem is only happening with IE, it works fine in Firefox!
Any ideas are greatly received
Thanks,
BBB
I've found a workaround, i need to make the image path absolute, i.e.
<a href="http://www.mydomain.com/images/profiles/75738086658X304.jpg" ><img src="http://www.mydomain.com/images/profiles/thumb_75738086658X304.jpg" alt="Testing" border="0" /></a>
How annoying - it's taken 3 hours to figure that one out!
I'm on hour 12 of trying to bring up another virtual magazine (I know HTML only, not Java)