Positionning problem between FF and IE
Hi all,
The best thing that makes me use jquery is the way it allows you to write code working for every browser.
But, here, I encounter a problem. Look at this code :
-
[...]
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function()
{
$('div.photo a img').each(function (i)
{
var str = this.x + " / " + this.y;
alert(str);
}
);
});
</script>
</head>
<body >
<div id="photos">
<div class="photo">
<a href="#photo25" id="a25">
<img src="25.png">
</a>
</div>
<div class="photo cadre">
<a href="#photo26" id="a26">
<img src="26.png">
</a>
</div>
</div>
</body>
With FF, the (X,Y) seems to be OK.
But with IE, I have undefined value.
How can I have the X and Y values of my images ?
Thanks for your help