onmouseover qui ne se déclenche pas sous IE...
Bonjour tout le monde :)
Comme a l'accoutumée, c'est bien sur IE qui me pose problème, on change pas les bonnes habitudes évidemment...
Bon voila alors en gros ce qui se passe, j'injecte dans une boucle des divs contenant cet html :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<table border="0" cellpadding="0" cellspacing="0" width="150" height="90" align="center">
<tr>
<td width="50" style="overflow:hidden" align="center">
<img src="test.jpg">
</td>
<td align="right" style="overflow:hidden">
Blablabla<br>
<span class="prixprod">320</span>
<span class="prixprod">€</span></td>
<td width="10">
</td>
</tr>
</table> |
(je sais c'est pas suuuuuper propre, mais ie posait encore des soucis...)
ensuite, j'effectue quelques manipulations dom pour modifier le contenu de chacun de ces divs :
Code:
1 2 3 4 5 6 7
|
//affinement selon infos produit (nom_pro, prix_prod et id_prod sont récup en xmlhttp)
produit.getElementsByTagName("td")[1].firstChild.data=nom_prod; produit.getElementsByTagName("span")[0].firstChild.data=prix_prod;
//photo et mouseover
var thumb=produit.getElementsByTagName("img")[0];
thumb.setAttribute("src","thumb.php?id="+id_prod); |
Pour enfin affecter un mouseover a mon thumbnail (histoire d'afficher la photo en grand quand on passe sur le thumb)
Code:
1 2 3
|
thumb.onmouseover=function () { thumbOver(this); };
thumb.setAttribute("onmouseover","thumbOver(this);"); |
Evidemment, ca fonctionne nickel sous FF, mais le mouseover ne se déclenche pas sous IE... j'ai essayé pas mal de trucs, pas moyen...
A l'aide :'( j'en ai marre de ce IE :'(
Merci d'avance pour vos maux de crane :)