Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/06/2008, 00:56
Avatar de Raulmmmm
Raulmmmm
 
Fecha de Ingreso: marzo-2007
Ubicación: En otro lugar que tú
Mensajes: 1.549
Antigüedad: 17 años
Puntos: 36
Respuesta: Problema con imagenes en el menú.

Mmmm.... tú lo has hecho con Javascript, pero hay una forma mucho más sencilla de hacer un menú:
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Prueba de imagenes de las secciones</title>
<style type="text/css">
ul{ margin: 0; padding: 0; list-style: none; }
li{ width: 170px; height: 34px; background: url('img2.jpg'); }
a{ display: block; width: 170px; height: 34px; background: url('img1.jpg'); }
a:hover{ background: none;}
</style>
</head>
<body>
<ul>
<li><a href="#">Enlace</a></li>
<li><a href="#">Enlace</a></li>
<li><a href="#">Enlace</a></li>
<li><a href="#">Enlace</a></li>
<li><a href="#">Enlace</a></li>
<li><a href="#">Enlace</a></li>
<li><a href="#">Enlace</a></li>
</ul>
</body>
</html> 
Te aconsejo que, si todavía no sabes CSS, te leas este manual. Ya no se usa Javascript para algunas cosas...