Hi there!
I had the same problem and i just solved it. It's actualy a css issue, as javascript does nothing to the way html is displayed.
My link was like this:
HTML Code:
<a href="link.html">
<span class="myclass1"><img src="myimg.jpg" /></span>
<span class="myclass2">This is some text</span>
</a>
And the css was:
Code:
a
{
display:block;
text-decoration:none;
width:220px;
height:75px;
position:relative;
}
a span.myclass1
{
display:block;
width:100px;
position:absolute;
}
a span.myclass2
{
display:block;
width:110px;
position:absolute;
left:110px; top:0;
}
And the bug apeared on both IE6 and IE7.
Apparently, the problem came from the absolute positioning of the img, as i was able to click on the text part of the link.
So i turned this to :
HTML Code:
<a href="link.html">
<img src="myimg.jpg" />
<span class="myclass2">This is some text</span>
</a>
Code:
a
{
display:block;
width:220px;
height:75px;
}
a img
{
float:left;
}
a span.myclass2
{
display:block;
width:110px;
float:right;
padding-top:5px;
font-size:11px;
}
Hope it helps!
Marc
Bookmarks