OnmouseOver no funciona en Mozilla-firefox

fangosto
21 de Mayo del 2005
El ejemplo para comprobarlo:

<html>
<head>
<title> Pruebas link sobre imagen </title>
</style>
</head>
<body>
<img src="images/tarta.gif" width="35" height="35"
onmouseover="this.style.cursor='hand'"
onclick="alert('Este evento si funciona')">
</body>
</html>

En el Explorer sí funciona.

Si lo corrijo como sigue funciona en ambos pero me daja unos feos puntitos en el explorer que no se quitar:

<html>
<head>
<title> Pruebas link sobre imagen </title>
</style>
</head>
<body>

Gracias por la ayuda.
<a onmouseover="this.style.cursor='hand'" href="">
<img src="images/tarta.gif" width="35" height="35"
onclick="alert('Este evento si funciona')">
</a>
</body>
</html>

Caiman
21 de Mayo del 2005
Bueno pues no se cual es el problema el código se ejecuta de forma correcta y no vi ningun punto.

Por cierto esta línea no te sirve de nada:

</style>

y puedes quitar la propiedad de estilo del cursor, con la etiqueta <a> lo harás automaticamente en ambos exploradores.

fangosto
21 de Mayo del 2005
Nueva versión. Arreglo Firefox y falla IE. ¡Alucinante!

<html>
<head>
<title> Pruebas link sobre imagen </title>
<style>
A.EnlaceIm:active {color: #C0C0C0}
A.EnlaceIm:link {color: #C0C0C0}
A.EnlaceIm:visited {color: #C0C0C0}
</style>
</head>
<body>
<table><tr><td bgcolor="#C0C0C0">
<a href="alert('Este evento si funciona'" class="EnlaceIm" >
<img src="images/tarta.gif" width="35" height="35">
</a>
</body>
</html>