efecto roll over Buenas!
Tengo este código roll over y en Internet explorer funciona correctamente, pero en el Mozilla no funciona correctamente.
Alguien me puede decir cual es el problema? he probado varios código para este efecto, pero ninguno me funciona correctamente en el Mozilla.
El código es:
<SCRIPT LANGUAGE="Javascript">
<!--
function Permut (flag,img) {
if (document.images) {
if (document.images[img].permloaded) {
if (flag==1) document.images[img].src = document.images[img].perm.src
else document.images[img].src = document.images[img].perm.oldsrc
}
}
}
function preloadPermut (img,adresse) {
if (document.images) {
img.onload = null;
img.perm = new Image ();
img.perm.oldsrc = img.src;
img.perm.src = adresse;
img.permloaded = true;
}
}
// -->
</SCRIPT>
<body>
<table class="letra_empre" border="1" width="85%" cellpadding="0" cellspacing="0">
<tr>
<td height="100" width="200" align="center">
<A HREF="trabajos.php?i=0&c=8&t=1" onMouseover="Permut(1,'IMG1');" onMouseout="Permut(0,'IMG1');">
<IMG SRC="images/imagen1.jpg" border=0 NAME="IMG1" align="middle" onLoad="preloadPermut(this,'images/imagen1_2.jpg');" ></A>
</td>
<td height="100" width="200"> </td>
<td height="100" width="200" align="center">
<A HREF="trabajos.php?i=0&c=8&t=2" onMouseover="Permut(1,'IMG2');" onMouseout="Permut(0,'IMG2');">
<IMG SRC="images/imagen2.jpg" border=0 NAME="IMG2" onLoad="preloadPermut(this,'images/imagen2_2.jpg');" ></A></td>
</tr>
<tr>
<td height="100" width="200"> </td>
<td height="100" width="200" align="center">
<A HREF="trabajos.php?i=0&c=8&t=3" onMouseover="Permut(1,'IMG3');" onMouseout="Permut(0,'IMG3');">
<IMG SRC="images/imagen3.jpg" border=0 NAME="IMG3" onLoad="preloadPermut(this,'images/imagen3_2.jpg');" ></A></td>
<td height="100" width="200"> </td>
</tr>
</table>
</body>
Muchas Gracias |