Apuntamos las clases con las que hemos construído el Menú de Opciones de Navegación:
.RecAreaTopLeft {background-image:url(../images/RecAreaTopLeft.gif);background-repeat:no-repeat;line-height: 12px;}
.RecAreaTopRight {background-image:url(../images/RecAreaTopRight.gif);background-repeat:no-repeat;line-height: 12px;}
.RecAreaBottomLeft {background-image:url(../images/RecAreaBottomLeft.gif);background-repeat:no-repeat;line-height: 12px;}
.RecAreaBottomRight {background-image:url(../images/RecAreaBottomRight.gif);background-repeat:no-repeat;line-height: 12px;}
.RecAreaShiftLeft {background-image:url(../images/RecAreaShiftLeft.gif);background-repeat:repeat-y;width: 12px;}
.RecAreaShiftRight {background-image:url(../images/RecAreaShiftRight.gif);background-repeat:repeat-y;width: 12px;}
.RecAreaShiftTop {background-image:url(../images/RecAreaShiftTop.gif);background-repeat:repeat-x;heigth: 12px;}
.RecAreaShiftBottom {background-image:url(../images/RecAreaShiftBottom.gif);background-repeat:repeat-x;heigth: 12px;}
.RecAreaTable {background: #1D4C55;color:#FFFFFF;padding: 3px;font-weight:normal;font-size: 10px;font-family: verdana,arial,helvetica,sans-serif;}
.squareHeader {width: 162px;height: 17px;background: #FCBE00;color:#000000;font-weight:bold;font-size: 10px;cursor: hand;border: groove 2px #CFCCAE;text-indent: 8px;font-family: verdana,arial,helvetica,sans-serif;}
ul.RecAreaList {list-style-type: none;list-style-position: outside;color:#FFFFFF;text-indent: -50px;font-weight: normal;font-size:10px;margin-bottom: -2px;margin-top: -4px;font-family:verdana, arial, helvetica, sans-serif;}
Y las pseudo-clases de los Hipertextos de Navegación:
a.textLink:link {color:#FFFFFF;cursor: hand;font-weight: normal;font-size:11px;text-decoration: none;font-family: arial,helvetica,sans-serif;}
a.textLink:hover {color:#FCE200;cursor: hand;font-weight: normal;font-size:11px;text-decoration: none;font-family: arial,helvetica,sans-serif;}
a.textLink:active {color:#FFFFFF;cursor: hand;font-weight: normal;font-size:11px;text-decoration: none;font-family: arial,helvetica,sans-serif;}
a.textLink:visited {color:#FFFFFF;cursor: hand;font-weight: normal;font-size:11px;text-decoration: none;font-family: arial,helvetica,sans-serif;}
A nivel decorativo incluímos una función Javascript típica para cambiar las imágenes-marcadores de los hiperenlaces:
imagenes = new Array(8);
for (i=0; i<8; i++) imagenes[i]=new Image();
imagenes[6].src="images/RecList1.gif";
imagenes[7].src="images/RecList2.gif";
var Click=1;
function SwapRec(imgName, imgNum)
{
document.images[imgName].src = imagenes[imgNum].src;
}
El código HTML para disponer los objetos que componen el menú no aporta información de especial valor (y puede observarse viendo el código fuente de la página con el browser). Sin embargo, incluiremos el código para activar el "swaping" de marcadores:
<li> <a class="textLink" href="http://www.uie.com/" target="window"
OnMouseOver="SwapRec('uie',7)"
OnMouseOut="SwapRec('uie',6)"> <img src="images/RecList1.gif" border="0" name="uie" width=7 height=5> User Interface Engineering</a></li>
Y finalmente el código HTML para hacer flotar abajo y a la derecha del Menú de Navegación el contenedor de "más enlaces":
<span class="boxMoreLink"><a href="usefullTools.htm#usability"> <img src="images/more.gif" alt="Más sitios útiles" border="0"></a></span>
Con lo que sólo nos queda describir la clase que implementan dicho contenedor:
.boxMoreLink {float: right;margin: -7px -8px;}
Como puede observarse, es tan sencillo como indicar que el contenedor de "más enlaces" flotará a la derecha del contenedor-padre dentro del que se encuentra indicando unas distancias en pixels al margen del mismo para una adecuada ubicación.
|