Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/12/2012, 15:28
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: imagen de sustitucion

Si vas a realizar el cambio sobre el mismo elemento, podés utilizar la propiedad this

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2.    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <a href="contenido/admin.html">
  8. <img src="bg2.jpg" onmouseover="this.src='los-simpsons.jpg'" onmouseout="this.src='bg2.jpg'" border="0" alt="" width="200" height="200"/>
  9. </a>
  10. </body>
  11. </html>

Y si usas el pseudoelememto :hover como te indica @david, dale display block a tu link y modifica el background-image

SAludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.